import React, { FC } from 'react'; import { ReactFlow, Node, ReactFlowProvider, useNodesState, Background, BackgroundProps, BackgroundVariant, } from '@react-flow/bundle'; import styles from './style.module.css'; const initialNodes: Node[] = [ { id: '1', data: { label: 'Node 1' }, position: { x: 50, y: 50 }, }, ]; const Flow: FC<{ id: string; bgProps: BackgroundProps }> = ({ id, bgProps }) => { const [nodes, , onNodesChange] = useNodesState(initialNodes); return ( ); }; const Backgrounds: FC = () => (
); export default Backgrounds;