mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 08:58:09 +08:00
18 lines
396 B
TypeScript
18 lines
396 B
TypeScript
import type { FC, PropsWithChildren } from 'react'
|
|
import * as React from 'react'
|
|
|
|
type EditorAreaProps = PropsWithChildren
|
|
|
|
const EditorArea: FC<EditorAreaProps> = ({ children }) => {
|
|
return (
|
|
<section
|
|
className="flex flex-1 flex-col gap-3 rounded-lg bg-white p-3"
|
|
data-component="editor-area"
|
|
>
|
|
{children}
|
|
</section>
|
|
)
|
|
}
|
|
|
|
export default React.memo(EditorArea)
|