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.

848 B
Raw Blame
import type { ReactNode } from 'react'
import { cn } from '@langgenius/dify-ui/cn'

type MenuItemContentProps = {
  iconClassName: string
  label: ReactNode
  trailing?: ReactNode
}

export function MenuItemContent({ iconClassName, label, trailing }: MenuItemContentProps) {
  const labelTitle = typeof label === 'string' ? label : undefined

  return (
    <>
      <span aria-hidden className={cn('size-4 shrink-0 text-text-tertiary', iconClassName)} />
      <div
        className="min-w-0 grow truncate px-1 system-md-regular text-text-secondary"
        title={labelTitle}
      >
        {label}
      </div>
      {trailing}
    </>
  )
}

export function ExternalLinkIndicator() {
  return (
    <span
      aria-hidden
      className="i-ri-arrow-right-up-line size-3.5 shrink-0 text-text-tertiary [&:dir(rtl)]:-scale-x-100"
    />
  )
}