@pagamio/frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
39 lines (38 loc) • 1.23 kB
TypeScript
import 'react-datepicker/dist/react-datepicker.css';
import React from 'react';
/**
* Props for the CustomDateRangeModal component
*/
interface CustomDateRangeModalProps {
isOpen: boolean;
showTimeSelect: boolean;
onClose: () => void;
onApply: (startDate: string, endDate: string) => void;
initialStartDate?: string;
initialEndDate?: string;
minDate?: Date;
maxDate?: Date;
timeIntervals?: number;
/**
* Date format string using date-fns formatting tokens
* @see https://date-fns.org/v2.30.0/docs/format
* @example 'dd/MM/yyyy' - 01/04/2023
* @example 'MM/dd/yyyy' - 04/01/2023
* @example 'yyyy-MM-dd' - 2023-04-01
* @example 'MMMM d, yyyy' - April 1, 2023
* @default 'dd/MM/yyyy'
*/
dateFormat?: string;
/**
* Time format string using date-fns formatting tokens
* @see https://date-fns.org/v2.30.0/docs/format
* @example 'h:mm aa' - 2:30 pm
* @example 'HH:mm' - 14:30
* @example 'h:mm:ss a' - 2:30:00 pm
* @example 'HH:mm:ss' - 14:30:00
* @default 'h:mm aa'
*/
timeFormat?: string;
}
declare const CustomDateRangeModal: React.FC<CustomDateRangeModalProps>;
export default CustomDateRangeModal;