import { useEffect, useRef, useState } from "react"; import { Select, SelectContent, SelectItem, SelectSeparator, SelectTrigger, SelectValue, } from "~/components/Select"; import { X as Close } from "lucide-react"; import { Button } from "~/components/Button"; import { Input, TextArea } from "~/components/Input"; import { cn } from "~/utils/cn"; const TEXT_COMMON_STYLE = cn( "col-[1] row-[1]", "flex h-full w-full rounded-md border border-slate-300 bg-transparent py-2 px-3 text-sm leading-[22px]" ); function AutosizingTextArea(props: { value: string; onChange: (value: string) => void; placeholder?: string; }) { return (