| {label} | -
- {(Array.isArray(mod) ? mod : [mod]).map(modifier =>
-
- |
-
| {label} | +
+ {isMacOS()
+ ? |
+
+ + setSearchQuery(event.target.value)} + placeholder={__('Search snippets', 'code-snippets')} + /> +
+ ) +} + +const NoItemsMessage = () => { + const { currentType, currentTag, searchQuery } = useSnippetsFilters() + + return searchQuery || currentTag + ? <> + {__('No snippets were found matching the current search query.', 'code-snippets')} + {__(' Please enter a new query or use the "Clear Filters" button above.', 'code-snippets')} + > + : <>{currentType + ? __("It looks like you don't have any snippets of this type.", 'code-snippets') + : __("It looks like you don't have any snippets.", 'code-snippets')} + + {' '} + + {__('Perhaps you would like to add a new one?', 'code-snippets')} + + > +} + +export const SnippetsListTable: React.FC = () => { + const { currentStatus } = useSnippetsFilters() + const { snippetsByStatus } = useFilteredSnippets() + + return ( + <> +{date}
+{category}
+{description}
+ + {__('Read more', 'code-snippets')} + +