UNPKG

ra-core

Version:

Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React

8 lines 431 B
import * as React from 'react'; import { createContext, useContext } from 'react'; export const PreferenceKeyContext = createContext(''); export const PreferenceKeyContextProvider = ({ value = '', children, }) => (React.createElement(PreferenceKeyContext.Provider, { value: value }, children)); export const usePreferenceKey = () => { return useContext(PreferenceKeyContext); }; //# sourceMappingURL=PreferenceKeyContext.js.map