'use client' import type { SkillTemplateSummary } from './templates/types' import { memo } from 'react' import { useTranslation } from 'react-i18next' import AppIcon from '@/app/components/base/app-icon' import Button from '@/app/components/base/button' type TemplateCardProps = { template: SkillTemplateSummary added?: boolean disabled?: boolean loading?: boolean onUse: (template: SkillTemplateSummary) => void } const TemplateCard = ({ template, added, disabled, loading, onUse }: TemplateCardProps) => { const { t } = useTranslation('workflow') return (
{template.description}