import { DatePicker as AntdDatePicker } from "antd";
import momentGenerateConfig from "rc-picker/lib/generate/moment";

import type { Moment } from "moment";

const DatePicker = AntdDatePicker.generatePicker<Moment>(momentGenerateConfig) as ReturnType<
    typeof AntdDatePicker.generatePicker<Moment>
>;

export { DatePicker };
