()
| 43 | ) |
| 44 | |
| 45 | function useFamilyDrawer() { |
| 46 | const context = useContext(FamilyDrawerContext) |
| 47 | if (!context) { |
| 48 | throw new Error( |
| 49 | "FamilyDrawer components must be used within FamilyDrawerRoot" |
| 50 | ) |
| 51 | } |
| 52 | return context |
| 53 | } |
| 54 | |
| 55 | // ============================================================================ |
| 56 | // Root Component |
no outgoing calls
no test coverage detected