@premieroctet/next-admin
Version:
Next-Admin provides a customizable and turnkey admin dashboard for applications built with Next.js and powered by the Prisma ORM. It aims to simplify the development process by providing a turnkey admin system that can be easily integrated into your proje
18 lines (17 loc) • 559 B
JavaScript
"use client";
import { jsx } from "react/jsx-runtime";
import external_react_default, { useContext, useMemo } from "react";
const ConfigContext = /*#__PURE__*/ external_react_default.createContext({});
const ConfigProvider = ({ children, ...props })=>{
const contextValue = useMemo(()=>({
...props
}), [
props
]);
return /*#__PURE__*/ jsx(ConfigContext.Provider, {
value: contextValue,
children: children
});
};
const useConfig = ()=>useContext(ConfigContext);
export { ConfigProvider, useConfig };