import React, { useRef } from "react"; import { Box } from "@chakra-ui/react"; import { format } from "date-fns"; import { Provider } from "react-redux"; import { store } from "../app/store"; import Calender from "../components/calender"; const IndexPage = (): JSX.Element => { const date = useRef({ year: parseInt(format(new Date(), "y")), month: parseInt(format(new Date(), "M")), day: parseInt(format(new Date(), "d")) }); return ( ); }; export default IndexPage;