()
| 11 | import type { IUserStore } from "@/store/user"; |
| 12 | |
| 13 | export const useUser = (): IUserStore => { |
| 14 | const context = useContext(StoreContext); |
| 15 | if (context === undefined) throw new Error("useUser must be used within StoreProvider"); |
| 16 | return context.user; |
| 17 | }; |
no outgoing calls
no test coverage detected