(props: S2ButtonProps)
| 325 | } |
| 326 | |
| 327 | export function SearchMenuButton(props: S2ButtonProps) { |
| 328 | let onPress = () => { |
| 329 | window.dispatchEvent(new CustomEvent('show-search-menu')); |
| 330 | }; |
| 331 | |
| 332 | return ( |
| 333 | <S2Button |
| 334 | size="XL" |
| 335 | staticColor="white" |
| 336 | variant="secondary" |
| 337 | {...props} |
| 338 | onPress={onPress} |
| 339 | // @ts-ignore |
| 340 | onHoverStart={() => preloadSearchMenu()}> |
| 341 | Explore components |
| 342 | </S2Button> |
| 343 | ); |
| 344 | } |
nothing calls this directly
no test coverage detected