'use client' import cn from 'classnames' import { useTranslation } from 'react-i18next' import { App } from '@/models/explore' import AppModeLabel from '@/app/(commonLayout)/apps/AppModeLabel' import AppIcon from '@/app/components/base/app-icon' import { PlusIcon } from '@heroicons/react/20/solid' import Button from '../../base/button' import s from './style.module.css' const CustomizeBtn = ( ) export type AppCardProps = { app: App, canCreate: boolean, onCreate: () => void, onAddToWorkspace: (appId: string) => void, } const AppCard = ({ app, canCreate, onCreate, onAddToWorkspace, }: AppCardProps) => { const { t } = useTranslation() const {app: appBasicInfo} = app return (
{appBasicInfo.name}
{app.description}
{canCreate && ( )}
) } export default AppCard