UNPKG

koval-ui

Version:

React components collection with minimalistic design. Supports theming, layout, and input validation.

15 lines (14 loc) 500 B
"use client"; import { jsx as u } from "react/jsx-runtime"; import { useReducer as n, useMemo as a } from "react"; const l = ({ initialState: o, reducer: r, context: t }) => ( // eslint-disable-next-line react/display-name ({ children: s }) => { const { Provider: c } = t, [e, i] = n(r, o), m = a(() => ({ state: e, dispatch: i }), [e]); return /* @__PURE__ */ u(c, { value: m, children: s }); } ); export { l as createStoreProvider }; //# sourceMappingURL=createStoreProvider.js.map