Files
dify/web/features/deployments/list/create-deployment-button.tsx
2026-05-18 16:23:27 +08:00

19 lines
538 B
TypeScript

'use client'
import { useTranslation } from 'react-i18next'
import Link from '@/next/link'
export function CreateDeploymentButton() {
const { t } = useTranslation('deployments')
return (
<Link
href="/deployments/create"
className="inline-flex h-8 items-center gap-1.5 rounded-lg bg-primary-600 px-3 system-sm-medium text-text-primary-on-surface hover:bg-primary-700"
>
<span className="i-ri-add-line size-4 shrink-0" aria-hidden="true" />
<span>{t('list.createDeployment')}</span>
</Link>
)
}