(options: { web: T; terminal: T })
| 15 | * Useful for conditional rendering where both branches must be valid React. |
| 16 | */ |
| 17 | export function platform<T>(options: { web: T; terminal: T }): T { |
| 18 | return isWeb ? options.web : options.terminal; |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Window/terminal dimensions hook substitute. |
no outgoing calls
no test coverage detected