({
children = 'No options',
innerProps,
...restProps
}: NoticeProps<Option, IsMulti, Group>)
| 496 | } |
| 497 | |
| 498 | export const NoOptionsMessage = < |
| 499 | Option, |
| 500 | IsMulti extends boolean, |
| 501 | Group extends GroupBase<Option> |
| 502 | >({ |
| 503 | children = 'No options', |
| 504 | innerProps, |
| 505 | ...restProps |
| 506 | }: NoticeProps<Option, IsMulti, Group>) => { |
| 507 | return ( |
| 508 | <div |
| 509 | {...getStyleProps( |
| 510 | { ...restProps, children, innerProps }, |
| 511 | 'noOptionsMessage', |
| 512 | { |
| 513 | 'menu-notice': true, |
| 514 | 'menu-notice--no-options': true, |
| 515 | } |
| 516 | )} |
| 517 | {...innerProps} |
| 518 | > |
| 519 | {children} |
| 520 | </div> |
| 521 | ); |
| 522 | }; |
| 523 | |
| 524 | export const LoadingMessage = < |
| 525 | Option, |
nothing calls this directly
no test coverage detected
searching dependent graphs…