diff --git a/packages/web/src/components/FreeTextInput.tsx b/packages/web/src/components/FreeTextInput.tsx new file mode 100644 index 0000000..b62b7d1 --- /dev/null +++ b/packages/web/src/components/FreeTextInput.tsx @@ -0,0 +1,39 @@ +import { Input } from "@/components/ui/input"; +import { Textarea } from "@/components/ui/textarea"; + +interface FreeTextInputProps { + questionId: string; + value: string; + onChange: (value: string) => void; + multiline?: boolean; + placeholder?: string; +} + +export function FreeTextInput({ + questionId, + value, + onChange, + multiline = false, + placeholder, +}: FreeTextInputProps) { + if (multiline) { + return ( +