mirror of
https://github.com/langgenius/dify.git
synced 2026-09-05 00:31:19 +08:00
41 lines
1.3 KiB
TypeScript
41 lines
1.3 KiB
TypeScript
import { useTranslation } from 'react-i18next'
|
|
import Link from '@/next/link'
|
|
|
|
export function PricingFooter({
|
|
pricingPageURL,
|
|
category,
|
|
}: {
|
|
pricingPageURL: string
|
|
category: 'cloud' | 'self-hosted'
|
|
}) {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<div className="flex min-h-16 w-full justify-center border-t border-divider-accent px-10">
|
|
<div
|
|
data-category={category}
|
|
className="flex max-w-[1680px] grow justify-end border-x border-divider-accent p-6 data-[category=cloud]:justify-between"
|
|
>
|
|
{category === 'cloud' && (
|
|
<div className="flex flex-col text-text-tertiary">
|
|
<span className="system-xs-regular">
|
|
{t(($) => $['plansCommon.taxTip'], { ns: 'billing' })}
|
|
</span>
|
|
</div>
|
|
)}
|
|
<span className="flex h-fit items-center gap-x-1 text-saas-dify-blue-accessible">
|
|
<Link
|
|
href={pricingPageURL}
|
|
className="system-md-regular hover:underline focus-visible:underline focus-visible:outline-hidden"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
{t(($) => $['plansCommon.comparePlanAndFeatures'], { ns: 'billing' })}
|
|
</Link>
|
|
<span aria-hidden="true" className="i-ri-arrow-right-up-line size-4" />
|
|
</span>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|