UNPKG

@refinedev/core

Version:

refine is a React-based framework for building internal tools, rapidly. It ships with Ant Design System, an enterprise-level UI toolkit.

44 lines (40 loc) 719 B
import { useContext } from "react"; import { RefineContext } from "@contexts/refine"; export const useRefineContext = () => { const { Footer, Header, Layout, OffLayoutArea, Sider, Title, hasDashboard, mutationMode, syncWithLocation, undoableTimeout, warnWhenUnsavedChanges, DashboardPage, LoginPage, catchAll, options, __initialized, } = useContext(RefineContext); return { __initialized, Footer, Header, Layout, OffLayoutArea, Sider, Title, hasDashboard, mutationMode, syncWithLocation, undoableTimeout, warnWhenUnsavedChanges, DashboardPage, LoginPage, catchAll, options, }; };