This repository has been archived on 2025-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
lcm-potty-chart/components/calender/NewContext.tsx
2021-12-29 13:52:39 -06:00

16 lines
412 B
TypeScript

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