()
| 176 | }) as <T>(props: SpectrumCardViewProps<T> & {ref?: DOMRef<HTMLDivElement>}) => ReactElement; |
| 177 | |
| 178 | function LoadingState() { |
| 179 | let {state} = useCardViewContext(); |
| 180 | let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/card'); |
| 181 | return ( |
| 182 | <CenteredWrapper> |
| 183 | <ProgressCircle |
| 184 | isIndeterminate |
| 185 | aria-label={ |
| 186 | state.collection.size > 0 |
| 187 | ? stringFormatter.format('loadingMore') |
| 188 | : stringFormatter.format('loading') |
| 189 | } |
| 190 | /> |
| 191 | </CenteredWrapper> |
| 192 | ); |
| 193 | } |
| 194 | |
| 195 | function EmptyState() { |
| 196 | let {renderEmptyState} = useCardViewContext(); |
nothing calls this directly
no test coverage detected