mirror of
https://github.com/langgenius/dify.git
synced 2026-05-22 18:08:40 +08:00
19 lines
538 B
TypeScript
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>
|
|
)
|
|
}
|