mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-26 10:58:22 +03:00
15 lines
505 B
TypeScript
15 lines
505 B
TypeScript
import type { FC } from 'react';
|
|
import type { ReactDatePickerProps } from 'react-datepicker';
|
|
import { DateInput } from './DateInput';
|
|
import { STANDARD_DATE_AND_TIME_FORMAT } from './helpers/date';
|
|
|
|
export type DateTimeInputProps = Omit<ReactDatePickerProps, 'showTimeSelect' | 'dateFormat' | 'timeIntervals'>;
|
|
|
|
export const DateTimeInput: FC<DateTimeInputProps> = (props) => (
|
|
<DateInput
|
|
{...props}
|
|
dateFormat={STANDARD_DATE_AND_TIME_FORMAT}
|
|
showTimeSelect
|
|
timeIntervals={10}
|
|
/>
|
|
);
|