import { FC } from 'react'; import { v4 as uuid } from 'uuid'; import { InputType } from 'reactstrap/lib/Input'; interface FormGroupContainer { value: string; onChange: (newValue: string) => void; id?: string; type?: InputType; required?: boolean; } export const FormGroupContainer: FC = ( { children, value, onChange, id = uuid(), type = 'text', required = true }, ) => (
onChange(e.target.value)} />
);