\n
\n {categories.map((cat) => (\n \n ))}\n
\n\n {openCategory && (\n
\n c.label === openCategory)!}\n onClose={() => setOpenCategory(null)}\n onSelect={(p) => {\n setPrompt(p);\n setOpenCategory(null);\n textareaRef.current?.focus();\n setTimeout(() => {\n const el = textareaRef.current;\n if (!el) return;\n el.style.height = \"auto\";\n el.style.height = Math.min(el.scrollHeight, 280) + \"px\";\n }, 0);\n }}\n />\n
\n )}\n