mirror of
https://github.com/langgenius/dify.git
synced 2026-02-12 22:01:20 -05:00
29 lines
513 B
TypeScript
29 lines
513 B
TypeScript
'use client'
|
|
|
|
import { memo } from 'react'
|
|
|
|
type SectionHeaderProps = {
|
|
title: string
|
|
description: string
|
|
className?: string
|
|
}
|
|
|
|
const SectionHeader = ({
|
|
title,
|
|
description,
|
|
className,
|
|
}: SectionHeaderProps) => {
|
|
return (
|
|
<header className={className}>
|
|
<h2 className="text-text-primary title-xl-semi-bold">
|
|
{title}
|
|
</h2>
|
|
<p className="mt-0.5 text-text-tertiary system-xs-regular">
|
|
{description}
|
|
</p>
|
|
</header>
|
|
)
|
|
}
|
|
|
|
export default memo(SectionHeader)
|