diff --git a/src/components/CenterPanel/forms/WiFiForm.tsx b/src/components/CenterPanel/forms/WiFiForm.tsx new file mode 100644 index 0000000..ec0ee71 --- /dev/null +++ b/src/components/CenterPanel/forms/WiFiForm.tsx @@ -0,0 +1,35 @@ +import { useQR } from '../../../context/QRContext'; +import { TextInput } from '../../ui/TextInput'; +import { SegmentedControl } from '../../ui/SegmentedControl'; +import type { WifiEncryption } from '../../../types'; + +const ENCRYPTION_OPTIONS: { label: string; value: WifiEncryption }[] = [ + { label: 'WPA', value: 'WPA' }, + { label: 'WEP', value: 'WEP' }, + { label: 'None', value: 'None' }, +]; + +export function WiFiForm() { + const { state, dispatch } = useQR(); + const { networkName, encryption, password } = state.formData.wifi; + + const set = (field: string, value: string) => + dispatch({ type: 'SET_FORM_FIELD', qrType: 'wifi', field, value }); + + return ( +