import './demo2.css';
import Calendar from '..';
import React from 'react';
import ReactDOM from 'react-dom';
import moment from 'moment';
import solarLunar from 'solarlunar';
function onDateChange(value) {
    console.log(value.format('L'));
}
function dateCellRender(value) {
    const solar2lunarData = solarLunar.solar2lunar(value.year(), value.month(), value.date());
    return (React.createElement("div", { className: "custom-cell" },
        value.date(),
        React.createElement("span", null, solar2lunarData.lDay === 1 ? solar2lunarData.monthCn : solar2lunarData.dayCn)));
}
ReactDOM.render(React.createElement("div", null,
    React.createElement(Calendar, { onSelect: onDateChange, dateCellRender: dateCellRender, defaultValue: moment().add(1, 'days') })), document.getElementById('calendar-demo-2'));
