Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

1.1 KB
Raw Blame
'use client'
import type { BillingQuota } from '../quota'
import { useTranslation } from 'react-i18next'
import { PlanUpgradeModal } from '@/app/components/billing/plan-upgrade-modal'
import UsageInfo from '@/app/components/billing/usage-info'

type Props = Readonly<{
  show: boolean
  onClose: () => void
  quota: BillingQuota
}>

export default function TriggerEventsLimitModal({ show, onClose, quota }: Props) {
  const { t } = useTranslation(['billing'])

  return (
    <PlanUpgradeModal
      show={show}
      onClose={onClose}
      iconClassName={'i-custom-vender-workflow-trigger-all'}
      title={t(($) => $['triggerLimitModal.title'], { ns: 'billing' })}
      description={t(($) => $['triggerLimitModal.description'], { ns: 'billing' })}
      extraInfo={
        <UsageInfo
          className="mt-4 w-full rounded-xl bg-components-panel-on-panel-item-bg"
          iconClassName={'i-custom-vender-workflow-trigger-all'}
          name={t(($) => $['triggerLimitModal.usageTitle'], { ns: 'billing' })}
          quota={quota}
          hideIcon
        />
      }
    />
  )
}