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" />
);
}