import { Link } from 'react-router-dom'; import { App, Category } from '../../../interfaces'; import AppCard from '../AppCard/AppCard'; import classes from './AppGrid.module.css'; interface ComponentProps { categories: Category[]; apps: App[] totalCategories?: number; searching: boolean; } const AppGrid = (props: ComponentProps): JSX.Element => { let apps: JSX.Element; if (props.categories.length > 0) { apps = (
No apps match your search criteria
); } else { apps = (There are no pinned application categories. You can pin them from the{' '} /applications menu
); } } else { apps = (You don't have any applications. You can add a new one from the{' '} /applications menu
); } } return apps; }; export default AppGrid;