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