From 57bb04cb4eff5d5f04f14eef93db3aabe126e352 Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:16:55 +0330 Subject: [PATCH] Import source: src/components/CenterPanel/forms/VCardForm Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- .../CenterPanel/forms/VCardForm.tsx | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/components/CenterPanel/forms/VCardForm.tsx diff --git a/src/components/CenterPanel/forms/VCardForm.tsx b/src/components/CenterPanel/forms/VCardForm.tsx new file mode 100644 index 0000000..5afbfbe --- /dev/null +++ b/src/components/CenterPanel/forms/VCardForm.tsx @@ -0,0 +1,23 @@ +import { useQR } from '../../../context/QRContext'; +import { TextInput } from '../../ui/TextInput'; + +export function VCardForm() { + const { state, dispatch } = useQR(); + const set = (field: string, value: string) => + dispatch({ type: 'SET_FORM_FIELD', qrType: 'vcard', field, value }); + const f = state.formData.vcard; + return ( +
+
+ set('firstName', v)} placeholder="John" /> + set('lastName', v)} placeholder="Doe" /> +
+ set('phone', v)} placeholder="+1 234 567 8900" type="tel" /> + set('email', v)} placeholder="john@example.com" type="email" /> + set('company', v)} placeholder="Acme Inc." /> + set('jobTitle', v)} placeholder="Software Engineer" /> + set('website', v)} placeholder="https://example.com" type="url" /> + set('address', v)} placeholder="123 Main St, City, Country" /> +
+ ); +}