import React, { FC } from 'react'
import type { TextFieldProps } from '../lib/TextFieldBase'
import { TextField } from '../TextField'

interface IDateTimeFieldProps extends TextFieldProps {
  type: 'date' | 'time' | 'datetime-local'
}

export const DateTimeField: FC<IDateTimeFieldProps> = ({
  InputLabelProps = {},
  ...props
}) => (
  <TextField
    {...props}
    InputLabelProps={{
      shrink: true,
      ...InputLabelProps,
    }}
  />
)
export default DateTimeField
