import * as React from 'react' ; import { BaseDateTimePicker } from './basepicker' ; import { AndroidDatetimePickerProps } from './types' ; export const DatePicker = ( props ) : JSX . Element => { let showPickerButtonAndroid = true ; let [ showPickerAndroid , setShowPickerAndroid ] = React . useState ( false ) ; const onChange = ( ) => { setShowPickerAndroid ( false ) ; } ; return ( < BaseDateTimePicker format = { props . format } initialDate = { props . initialDate } minuteInterval = { props . minuteInterval } mode = { props . mode } onChange = { onChange } onDateChange = { props . onDateChange } setShowPickerAndroid = { setShowPickerAndroid } showPickerAndroid = { showPickerAndroid } showPickerButtonAndroid = { showPickerButtonAndroid } / > ) ; } ;