import React, {FunctionComponent} from 'react'; import {WithStyled, rem} from '~/utils/style'; import styled from 'styled-components'; const Wrapper = styled.div` & + & { margin-top: ${rem(20)}; } `; const Label = styled.div` margin-bottom: ${rem(10)}; `; type FieldProps = { label?: string | JSX.Element; }; const Field: FunctionComponent = ({label, children, className}) => ( {label && } {children} ); export default Field;