mirror of
https://github.com/langgenius/dify.git
synced 2026-09-06 17:25:12 +08:00
Signed-off-by: yyh <yuanyouhuilyz@gmail.com> Co-authored-by: 盐粒 Yanli <mail@yanli.one> Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: zyssyz123 <916125788@qq.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: 盐粒 Yanli <yanli@dify.ai> Co-authored-by: 林玮 (Jade Lin) <linw1995@icloud.com>
30 lines
764 B
TypeScript
30 lines
764 B
TypeScript
'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>
|
|
)
|
|
}
|