import Container from "@/components/Container/Container";
import Section from "@/components/Section/Section";
import Wsywig from "@/components/Wsywig/Wsywig";

const TwoColumnWithTitle = async (props: { [rest: string]: any }) => {
  return (
    <Container id={props.anchor}>
      <Section
        gridArea="thin"
        className="grid grid-cols-1 lg:grid-cols-2 gap-x-sm"
      >
        <h2 className="h1 row-span-1 lg:col-span-2 mb-sm">{props.title}</h2>
        <div className="lg:m-none row-span-1 lg:col-span-1 lg:row-start-2">
          <Wsywig content={props.left_content} />
        </div>
        <div className="m-none row-span-1 lg:col-span-1 lg:row-start-2">
          <Wsywig content={props.right_content} />
        </div>
      </Section>
    </Container>
  );
};

export default TwoColumnWithTitle;
