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"; const weekDays = [ "شنبه", "یکشنبه", "دوشنبه", "سشنبه", "چهارشنبه", "پنجشنبه", "جمعه", ]; const Calender = () => { return (
{ let props = {}; let isWeekend = date.weekDay.index === 6; if (isWeekend) props.className = "highlight highlight-red"; return props; }} weekDays={weekDays} arrow={false} calendar={persian} locale={persian_fa} />
); }; export default Calender;