import * as React from 'react'; import s from './Field.module.scss'; const { useCallback } = React; type Props = { name: string; value?: string | number; type?: 'text' | 'number'; onChange?: (...args: any[]) => any; id?: string; label?: string; placeholder?: string; }; export default function Field({ id, label, value, onChange, ...props }: Props) { const valueOnChange = useCallback((e) => onChange(e), [onChange]); return (
); }