Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { noop } from "lodash";
import { TimePicker } from "antd";
import { TimePickerProps } from "antd/es/time-picker";
import RcRangeCalendar from "rc-calendar/es/RangeCalendar";
import locale from "rc-calendar/es/locale/en_US";
import "rc-calendar/assets/index.css";
import classNames from "classnames/bind";
import { CaretDown } from "@cockroachlabs/icons";
import { Button } from "src/components";
import styles from "./rangeCalendar.module.styl";
import { DateRangeLabel } from "./dateRangeLabel";
const cx = classNames.bind(styles);
locale.monthFormat = "MMMM";
interface OwnProps {
timeFormat?: string;
minTimeRange?: [DurationInputArg1, DurationInputArg2];
onSubmit?: (range: [Moment, Moment]) => void;
onCancel?: () => void;
onInvalidRangeSelect?: (allowedRange: [DurationInputArg1, DurationInputArg2]) => void;
showBorders?: boolean;
}
interface RcTimePickerProps {
align: {
offset: [number, number];
};
}