(props: TreeViewLoadMoreItemProps)
| 720 | }); |
| 721 | |
| 722 | export const TreeViewLoadMoreItem = (props: TreeViewLoadMoreItemProps): ReactNode => { |
| 723 | let {loadingState, onLoadMore} = props; |
| 724 | let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/s2'); |
| 725 | let isLoading = loadingState === 'loading' || loadingState === 'loadingMore'; |
| 726 | return ( |
| 727 | <TreeLoadMoreItem |
| 728 | isLoading={isLoading} |
| 729 | onLoadMore={onLoadMore} |
| 730 | className={style({width: 'full', marginY: 4})}> |
| 731 | {() => { |
| 732 | return ( |
| 733 | <div className={centeredWrapper}> |
| 734 | <ProgressCircle |
| 735 | isIndeterminate |
| 736 | aria-label={stringFormatter.format('treeview.loadingMore')} |
| 737 | /> |
| 738 | </div> |
| 739 | ); |
| 740 | }} |
| 741 | </TreeLoadMoreItem> |
| 742 | ); |
| 743 | }; |
| 744 | |
| 745 | interface ExpandableRowChevronProps { |
| 746 | isExpanded?: boolean; |
nothing calls this directly
no test coverage detected