({
children = 'Loading...',
innerProps,
...restProps
}: NoticeProps<Option, IsMulti, Group>)
| 522 | }; |
| 523 | |
| 524 | export const LoadingMessage = < |
| 525 | Option, |
| 526 | IsMulti extends boolean, |
| 527 | Group extends GroupBase<Option> |
| 528 | >({ |
| 529 | children = 'Loading...', |
| 530 | innerProps, |
| 531 | ...restProps |
| 532 | }: NoticeProps<Option, IsMulti, Group>) => { |
| 533 | return ( |
| 534 | <div |
| 535 | {...getStyleProps( |
| 536 | { ...restProps, children, innerProps }, |
| 537 | 'loadingMessage', |
| 538 | { |
| 539 | 'menu-notice': true, |
| 540 | 'menu-notice--loading': true, |
| 541 | } |
| 542 | )} |
| 543 | {...innerProps} |
| 544 | > |
| 545 | {children} |
| 546 | </div> |
| 547 | ); |
| 548 | }; |
| 549 | |
| 550 | // ============================== |
| 551 | // Menu Portal |
nothing calls this directly
no test coverage detected
searching dependent graphs…