()
| 624 | } |
| 625 | |
| 626 | export function useProjectContext(): ProjectContext { |
| 627 | const context = useContext(ProjectContext); |
| 628 | if (!context) { |
| 629 | throw new Error("useProjectContext must be used within ProjectProvider"); |
| 630 | } |
| 631 | return context; |
| 632 | } |
no outgoing calls