"use client"; import { type FC } from "react"; const STARTERS = [ { icon: "/icons/magnifying-glass.svg", description: "What legal data can the agent find?", }, { icon: "/icons/ban.svg", description: "What are the agent's limitations?", }, { icon: "/icons/hexagon.svg", description: "What are the details of your AI model?", }, { icon: "/icons/database.svg", description: "What are your data sources?", }, ]; const ThreadSuggestions: FC = () => { const handleClick = (prompt: string) => { const input = document.querySelector( 'textarea[aria-label="Message input"]' ) as HTMLTextAreaElement; if (input) { const nativeInputValueSetter = Object.getOwnPropertyDescriptor( window.HTMLTextAreaElement.prototype, "value" )?.set; nativeInputValueSetter?.call(input, prompt); input.dispatchEvent(new Event("input", { bubbles: true })); input.focus(); } }; return (