import { Input } from "./ui/input"; import { Label } from "./ui/label"; import { Textarea } from "./ui/textarea"; export const TextInputWithLabel = ({ label, id, type, inputType, state, setState, ...delegated }: { label: string; id: string; type: string; inputType?: "input" | "textarea"; state: Record; setState: React.Dispatch>; [x: string]: unknown; }) => { return (
{inputType === "textarea" ? (