()
| 206 | const TabContext = createContext<TabContextValue | null>(null) |
| 207 | |
| 208 | export function useTabContext() { |
| 209 | const ctx = useContext(TabContext) |
| 210 | if (!ctx) { |
| 211 | throw new Error("useTabContext must be used within TabProvider") |
| 212 | } |
| 213 | return ctx |
| 214 | } |
| 215 | |
| 216 | function makeConversationTabId( |
| 217 | folderId: number, |
no outgoing calls