import * as React from 'react'; import { Colors, Sizes, Variants } from "../../styles"; import { StyledInputContainer, StyledDatetimeInput, StyledLabel, StyledInputError, } from "./styled-datetime-input"; interface Props { label?: React.ReactNode; name: string; size: Sizes; variant: Variants; value: string | number; onChange: (e: { target: { value: string } }) => void; error?: string; color: Colors; } const DatetimeInput = (props: Props) => ( {props.label && ( {props.label} )} {props.error} ); DatetimeInput.defaultProps = { size: 'md', color: 'primary', variant: 'contained', onChange: () => {}, } export default DatetimeInput;