import { Tag, TagLabel } from '@chakra-ui/react'; import Link from 'next/link'; import React from 'react'; import AppLogo from '../../../components/AppLogo/AppLogo'; import { AppCategoriesEnum } from '../../../generated/graphql'; import { colorSchemeForCategory, limitText } from '../helpers/table.helpers'; type App = { id: string; name: string; categories: string[]; short_desc: string; image: string; }; const AppStoreTile: React.FC<{ app: App }> = ({ app }) => { return (
{limitText(app.name, 20)}
{limitText(app.short_desc, 45)}
{app.categories?.map((category) => ( {category.toLocaleLowerCase()} ))}
); }; export default AppStoreTile;