diff --git a/src/components/CenterPanel/forms/TextForm.tsx b/src/components/CenterPanel/forms/TextForm.tsx new file mode 100644 index 0000000..c4a529d --- /dev/null +++ b/src/components/CenterPanel/forms/TextForm.tsx @@ -0,0 +1,14 @@ +import { useQR } from '../../../context/QRContext'; +import { TextareaInput } from '../../ui/TextareaInput'; + +export function TextForm() { + const { state, dispatch } = useQR(); + return ( + dispatch({ type: 'SET_FORM_FIELD', qrType: 'text', field: 'text', value: v })} + placeholder="Enter any text..." + /> + ); +}