()
| 13 | } |
| 14 | |
| 15 | export function usePlatform(): Platform { |
| 16 | const platform = useContext(PlatformContext); |
| 17 | if (!platform) { |
| 18 | throw new Error('usePlatform must be used within PlatformProvider'); |
| 19 | } |
| 20 | return platform; |
| 21 | } |
no outgoing calls
no test coverage detected