import { ReactNode } from 'react'; // Styled import { Error, Label, StyledFormRow } from './styled'; interface IFormRow { label: string; error?: string; children: ReactNode; } const FormRow = ({ label, error, children }: IFormRow) => { return (
{children} {error && {error}}
); }; export default FormRow;