import * as React from 'react' ; import DatePicker from '@synerise/ds-date-picker/dist/DatePicker' ; import { InputProps } from '../../Factors.types' ; const DateInput = ( { value , onChange , texts , opened } ) => { const changeHandler = React . useCallback ( ( date ) => { onChange ( date ) ; } , [ onChange ] ) ; return ( < DatePicker onApply = { changeHandler } value = { value as Date } showTime useStartOfDay texts = { texts . datePicker } disabledHours = { [ ] } disabledMinutes = { [ ] } disabledSeconds = { [ ] } autoFocus = { opened } / > ) ; } ; export default DateInput ;