mirror of
https://github.com/langgenius/dify.git
synced 2026-03-17 12:57:51 +08:00
Replace FC<Props> pattern with direct props typing in function parameters for better TypeScript inference and modern React best practices.
15 lines
343 B
TypeScript
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)
|