Day.js
373 Bytes
import React, { useContext } from "react";
import GridItem from "./GridItem.js";
import { CalendarStateContext } from "../pages/Calendar";
import "../styles/Day.css";
const Day = () => {
const { state } = useContext(CalendarStateContext);
return (
<div className="Day">
<GridItem targetDate={new Date(state.date)} />
</div>
);
};
export default Day;