dify/web/app/components/datasets/preview/header.tsx
Stephen Zhou a84c2d36a3
style: format with vp fmt (#38803)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-12 15:57:46 +00:00

19 lines
512 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>
)
}