mirror of
https://github.com/langgenius/dify.git
synced 2026-04-20 06:00:36 -04:00
24 lines
544 B
TypeScript
24 lines
544 B
TypeScript
import type { ComponentProps, FC } from 'react'
|
|
import { cn } from '@langgenius/dify-ui/cn'
|
|
|
|
type PreviewHeaderProps = Omit<ComponentProps<'div'>, 'title'> & {
|
|
title: string
|
|
}
|
|
|
|
export const PreviewHeader: FC<PreviewHeaderProps> = (props) => {
|
|
const { title, className, children, ...rest } = props
|
|
return (
|
|
<div
|
|
{...rest}
|
|
className={cn(className)}
|
|
>
|
|
<div
|
|
className="mb-1 px-1 system-2xs-semibold-uppercase text-text-accent uppercase"
|
|
>
|
|
{title}
|
|
</div>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|