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