()
| 60 | // client render must agree: both say "not a phone" and the answer lands |
| 61 | // after mount. The extension's new tab has no shell at any width. |
| 62 | export const useIsPhone = (): boolean => { |
| 63 | const check = useMediaClient( |
| 64 | [viewSizeToQuery[ViewSize.MobileL].replace('@media ', '')], |
| 65 | [true], |
| 66 | false, |
| 67 | ); |
| 68 | |
| 69 | return !isExtension && check !== undefined && !check; |
| 70 | }; |
| 71 | |
| 72 | // Whether useIsPhone's answer has landed (after mount). |
| 73 | export const useIsPhoneSettled = (): boolean => { |
no test coverage detected