'use client' import cn from 'classnames' import { useTranslation } from 'react-i18next' import AppModeLabel from '@/app/(commonLayout)/apps/AppModeLabel' import type { App } from '@/types/app' 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, onCreate: () => void, onAddToWorkspace: (appId: string) => void, } const AppCard = ({ app, onCreate, onAddToWorkspace }: AppCardProps) => { const { t } = useTranslation() return (
{app.name}
{app.model_config?.pre_prompt}
) } export default AppCard