/** * Copyright (C) Paul Sarando * Distributed under the Eclipse Public License (http://www.eclipse.org/legal/epl-v10.html). */ import React from "react"; import { getDateColor, GregorianDateDisplay } from "./DateCell"; interface IntercalaryDayProps { currentDate: Date; dayClassName?: string; dayExtra?: string | number; dayExtraClassName?: string; description: string; gregorian: Date; gregorianExtra?: Date; name: string | number; } const IntercalaryDay = (props: IntercalaryDayProps) => { const { currentDate, dayClassName, dayExtra, dayExtraClassName, description, gregorian, gregorianExtra, name, } = props; let dayColor = getDateColor("holiday", gregorian, currentDate); if (dayExtra && gregorianExtra) { dayColor = getDateColor(dayColor, gregorianExtra, currentDate); return (
{name}

{dayExtra}
); } return (
{name}
); }; export default IntercalaryDay;