import { cn } from "@/lib/utils";

import AnimatedGridPattern from "@/components/ui/animated-grid-pattern";
import CardBackground from "@/components/card-background";

import Title from "../../_components/title";
import AskAgentCard from "../../_components/ask-agent-card";
import ResponseAgentCard from "../../_components/response-agent-card";

export default function AgentAsk({
  params,
}: {
  params: { agentId: string; responseId: string };
}) {
  return (
    <section className="relative flex min-h-[calc(100vh-64px)] w-full py-10 items-center justify-center overflow-hidden rounded-lg border bg-background">
      <div className="layout flex flex-col items-center">
        <Title />
        <CardBackground>
          <AskAgentCard agentId={params.agentId} disabled={true} />
        </CardBackground>
        <CardBackground>
          <ResponseAgentCard agentResponseId={params.responseId} />
        </CardBackground>
      </div>
      <AnimatedGridPattern
        numSquares={30}
        maxOpacity={0.1}
        duration={3}
        repeatDelay={1}
        className={cn(
          "[mask-image:radial-gradient(500px_circle_at_center,white,transparent)]",
          "inset-x-0 inset-y-[-30%] h-[200%] skew-y-12"
        )}
      />
    </section>
  );
}
