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.

847 B
Raw Blame
import type { CloudPlan } from '@dify/contracts/api/console/features/types.gen'
import PremiumBadge from '../../base/premium-badge'

export function PlanBadge({ plan }: { plan: CloudPlan }) {
  switch (plan) {
    case 'sandbox':
      return (
        <PremiumBadge className="select-none" size="s" color="gray">
          <span className="p-1 system-2xs-medium-uppercase">{plan}</span>
        </PremiumBadge>
      )
    case 'professional':
      return (
        <PremiumBadge className="select-none" size="s" color="blue">
          <span className="p-1 system-2xs-medium-uppercase">pro</span>
        </PremiumBadge>
      )
    case 'team':
      return (
        <PremiumBadge className="select-none" size="s" color="indigo">
          <span className="p-1 system-2xs-medium-uppercase">{plan}</span>
        </PremiumBadge>
      )
  }
}