Files
dify/web/app/components/workflow/skill/start-tab/section-header.tsx
yyh 8326b9e3e5 refactor(skill): remove React.FC type annotations from all components
Replace FC<Props> pattern with direct props typing in function parameters
for better TypeScript inference and modern React best practices.
2026-01-28 23:34:08 +08:00

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="title-xl-semi-bold text-text-primary">
{title}
</h2>
<p className="system-xs-regular mt-0.5 text-text-tertiary">
{description}
</p>
</header>
)
}
export default memo(SectionHeader)