shlink-web-client/src/utils/dates/DateTimeInput.tsx

15 lines
418 B
TypeScript
Raw Normal View History

2022-10-18 23:02:09 +03:00
import { ReactDatePickerProps } from 'react-datepicker';
import { FC } from 'react';
import { DateInput } from '../DateInput';
export type DateTimeInputProps = Omit<ReactDatePickerProps, 'showTimeSelect' | 'dateFormat' | 'timeIntervals'>;
export const DateTimeInput: FC<DateTimeInputProps> = (props) => (
<DateInput
{...props}
dateFormat="yyyy-MM-dd HH:mm"
showTimeSelect
timeIntervals={5}
/>
);