()
| 81 | const makeKey = () => `drawer-${++keyCounter}`; |
| 82 | |
| 83 | const Ctx = createContext<DrawerStackApi<T> | null>(null); |
| 84 | |
| 85 | function useDrawerStack(): DrawerStackApi<T> { |
| 86 | const ctx = useContext(Ctx); |
| 87 | if (!ctx) throw new Error('useDrawerStack must be used within DrawerStackProvider'); |
| 88 | return ctx; |
| 89 | } |
| 90 |
no outgoing calls
no test coverage detected