Files
dify/web/app/components/workflow/skill/content-area.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

15 lines
343 B
TypeScript

import type { PropsWithChildren } from 'react'
import * as React from 'react'
type ContentAreaProps = PropsWithChildren
const ContentArea = ({ children }: ContentAreaProps) => {
return (
<section className="flex min-h-0 min-w-0 flex-1 flex-col rounded-lg">
{children}
</section>
)
}
export default React.memo(ContentArea)