UNPKG

@refinedev/core

Version:

Refine is a React meta-framework for building enterprise-level, data-intensive applications rapidly with support for modern UI libraries and headless integrations.

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, }; };