mirror of
https://gitee.com/ByteDance/flowgram.ai.git
synced 2025-07-07 17:43:29 +08:00
20 lines
537 B
TypeScript
20 lines
537 B
TypeScript
import React, { type FC } from 'react';
|
|
|
|
import type { ContainerNodeRenderProps } from './type';
|
|
import {
|
|
ContainerNodeBackground,
|
|
ContainerNodeHeader,
|
|
ContainerNodePorts,
|
|
ContainerNodeBorder,
|
|
ContainerNodeContainer,
|
|
} from './components';
|
|
|
|
export const ContainerNodeRender: FC<ContainerNodeRenderProps> = ({ content }) => (
|
|
<ContainerNodeContainer>
|
|
<ContainerNodeBackground />
|
|
<ContainerNodeBorder />
|
|
<ContainerNodeHeader>{content}</ContainerNodeHeader>
|
|
<ContainerNodePorts />
|
|
</ContainerNodeContainer>
|
|
);
|