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.

810 B
Raw Blame
'use client'

import type { ReactNode } from 'react'
import { cn } from '@langgenius/dify-ui/cn'

type AgentDetailSectionSurfaceProps = {
  children: ReactNode
  className?: string
  label: string
  panelClassName?: string
}

export function AgentDetailSectionSurface({
  children,
  className,
  label,
  panelClassName,
}: AgentDetailSectionSurfaceProps) {
  return (
    <section
      aria-label={label}
      className={cn('flex h-full min-w-0 flex-1 overflow-hidden py-1 pr-1 pl-0', className)}
    >
      <div
        className={cn(
          'flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg border-[0.5px] border-components-panel-border bg-components-panel-bg shadow-xl shadow-shadow-shadow-5',
          panelClassName,
        )}
      >
        {children}
      </div>
    </section>
  )
}