({
searchValue,
libraryLabel
}: {
searchValue: string;
libraryLabel: string;
})
| 745 | } |
| 746 | |
| 747 | export function SearchEmptyState({ |
| 748 | searchValue, |
| 749 | libraryLabel |
| 750 | }: { |
| 751 | searchValue: string; |
| 752 | libraryLabel: string; |
| 753 | }) { |
| 754 | return ( |
| 755 | <IllustratedMessage styles={style({margin: 32})}> |
| 756 | <NoSearchResults /> |
| 757 | <Heading>No results</Heading> |
| 758 | {searchValue.trim().length > 0 ? ( |
| 759 | <Content> |
| 760 | No results found for{' '} |
| 761 | <strong className={style({fontWeight: 'bold'})}>{searchValue}</strong> in {libraryLabel}. |
| 762 | </Content> |
| 763 | ) : ( |
| 764 | <Content>No results found in {libraryLabel}.</Content> |
| 765 | )} |
| 766 | </IllustratedMessage> |
| 767 | ); |
| 768 | } |
| 769 | |
| 770 | export const LazyIconSearchView = React.lazy(() => |
| 771 | import('./IconSearchView').then(({IconSearchView}) => ({default: IconSearchView})) |
nothing calls this directly
no outgoing calls
no test coverage detected