New component to pull in the new context.

This commit is contained in:
Lucid Kobold
2021-12-22 15:02:40 -06:00
parent 07dbe966e7
commit 5e7afcaf7d

View File

@@ -0,0 +1,16 @@
import React, { useContext } from "react";
import { Box, Text } from "@chakra-ui/react";
import { NewCalenderContext } from "../../contexts/NewCalenderContext";
const NewContext = (): JSX.Element => {
const { selectedMonthInfo } = useContext(NewCalenderContext);
const { date } = selectedMonthInfo;
return (
<Box>
<Text>{`New Context Was Provided. Selected date is ${date}`}</Text>
</Box>
);
};
export default NewContext;