import styles from './field.module.css'; interface FieldProps { children?: React.ReactNode; label: string; onChange: (value: string | number) => void; optional?: boolean; type: 'text' | 'select'; value: string | number; } export function Field({ children, label, onChange, optional, type, value, }: FieldProps) { return (