"use client";

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

const LlmsCheckerBlock = (props: { [rest: string]: any }) => {
  const supportingTitle = props.supporting_title || "Can AI see your website";
  const supportingText =
    props.supporting_text ||
    "Enter your website URL below to quickly see whether an llms.txt file is publicly available.";

  return (
    <Container id={props.anchor}>
      <Section gridArea="thin">
        {props.title ? <h3>{props.title}</h3> : null}
        <h3>{supportingTitle}</h3>
        {props.content ? <p>{props.content}</p> : null}
        <p>{supportingText}</p>
        <LlmsChecker />
      </Section>
    </Container>
  );
};

export default LlmsCheckerBlock;
