import useCalendar from 'useCalendar'
const Component = () =>{
const {
today,
days,
setNextMonth,
setPreMonth,
selectDate,
} = useCalendar()
return <div>....</div>
}
value | type | default |
---|---|---|
today | Date() | today Date() |
days | arrat[week][day] | current Month array[] |
setNextMonth | function | toggle next month |
setPreMonth | funtcion | toggle pre month |
selectDate | function | select date |