Files
dify/web/app/components/workflow/skill/content-body.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
315 B
TypeScript

import type { PropsWithChildren } from 'react'
import * as React from 'react'
type ContentBodyProps = PropsWithChildren
const ContentBody = ({ children }: ContentBodyProps) => {
return (
<div className="flex min-h-0 min-w-0 flex-1">
{children}
</div>
)
}
export default React.memo(ContentBody)