(url?: string)
| 122 | }; |
| 123 | |
| 124 | const hostOf = (url?: string): string => { |
| 125 | if (!url) { |
| 126 | return ''; |
| 127 | } |
| 128 | try { |
| 129 | return new URL(url).host.replace(/^www\./, ''); |
| 130 | } catch { |
| 131 | return ''; |
| 132 | } |
| 133 | }; |
| 134 | |
| 135 | interface MenuRowProps { |
| 136 | icon: ReactNode; |
no test coverage detected