import React from "react"; import { Calendar } from "react-multi-date-picker"; import persian from "react-date-object/calendars/persian"; import persian_fa from "react-date-object/locales/persian_fa"; import DatePanel from "react-multi-date-picker/plugins/date_panel"; const weekDays = [ "شنبه", "یکشنبه", "دوشنبه", "سشنبه", "چهارشنبه", "پنجشنبه", "جمعه", ]; function CustomButton({ direction, handleClick, disabled }) { return ( {direction === "right" ? ">" : "<"} ); } // function CustomRangeInput({openCalendar, value}) { // let from = value[0] || "" // let to = value[1] || "" // value = from && to ? "از " + from + "، تا " + to": from // return ( // // ) // } const DateRangePicker = () => { return ( <> arrow} range calendar={persian} locale={persian_fa} weekDays={weekDays} minDate={new Date()} renderButton={} // render={} calendarPosition="bottom-right" plugins={[]} /> ); }; export default DateRangePicker;