UNPKG

applesauce-react

Version:

React hooks for applesauce

8 lines (7 loc) 340 B
import { jsx as _jsx } from "react/jsx-runtime"; import { createContext } from "react"; export const ActionsContext = createContext(undefined); /** Provides an ActionHub to the component tree */ export function ActionsProvider({ actionHub, children }) { return _jsx(ActionsContext.Provider, { value: actionHub, children: children }); }