()
| 132 | // --- Consumer Hook --- |
| 133 | |
| 134 | export const useSessionStats = () => { |
| 135 | const context = useContext(SessionStatsContext); |
| 136 | if (context === undefined) { |
| 137 | throw new Error( |
| 138 | 'useSessionStats must be used within a SessionStatsProvider', |
| 139 | ); |
| 140 | } |
| 141 | return context; |
| 142 | }; |
no outgoing calls