UNPKG

carbon-react

Version:

A library of reusable React components for easily building user interfaces.

2 lines (1 loc) 338 B
import{createContext as o,useContext as r}from"react";import t from"invariant";const e=o(null),n=e.Provider,a=()=>{const o=r(e);return t(o,"Carbon ActionPopover: Context not found. Have you wrapped your Carbon subcomponents properly? See stack trace for more details."),o};export{n as ActionPopoverProvider,a as useActionPopoverContext};