mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-27 11:28:22 +03:00
15 lines
418 B
TypeScript
15 lines
418 B
TypeScript
|
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}
|
||
|
/>
|
||
|
);
|