securityos/contexts/menu/index.tsx

8 lines
315 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import Menu from "components/system/Menu";
import contextFactory from "contexts/contextFactory";
import useMenuContextState from "contexts/menu/useMenuContextState";
const { Provider, useContext } = contextFactory(useMenuContextState, <Menu />);
export { Provider as MenuProvider, useContext as useMenu };