mirror of
https://github.com/langgenius/dify.git
synced 2026-03-22 14:57:58 +08:00
Replace FC<Props> pattern with direct props typing in function parameters for better TypeScript inference and modern React best practices.
15 lines
337 B
TypeScript
15 lines
337 B
TypeScript
import type { PropsWithChildren } from 'react'
|
|
import * as React from 'react'
|
|
|
|
type SkillPageLayoutProps = PropsWithChildren
|
|
|
|
const SkillPageLayout = ({ children }: SkillPageLayoutProps) => {
|
|
return (
|
|
<div className="flex h-full gap-3 overflow-hidden">
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default React.memo(SkillPageLayout)
|