UNPKG

dynamic-modal

Version:

The dynamic-modal is a solution of creation different modals into project using a json configuration file

9 lines (8 loc) 381 B
'use client'; import { jsx as _jsx } from "react/jsx-runtime"; import { useMemo, createContext } from 'react'; export const ComponentStateContext = createContext({}); export const ComponentState = ({ children, components, }) => { const value = useMemo(() => components, [components]); return (_jsx(ComponentStateContext.Provider, { value: value, children: children })); };