import React, { FC, Fragment } from 'react'; import { IFlowState } from '~/redux/flow/reducer'; import { INode } from '~/redux/types'; import { IUser } from '~/redux/auth/types'; import { PRESETS, URLS } from '~/constants/urls'; import { FlowCell } from '~/components/flow/FlowCell'; import classNames from 'classnames'; import styles from './styles.module.scss'; import { getURLFromString } from '~/utils/dom'; type IProps = Partial & { user: Partial; onChangeCellView: (id: INode['id'], flow: INode['flow']) => void; }; export const FlowGrid: FC = ({ user, nodes, onChangeCellView }) => { if (!nodes) { return null; } return ( {nodes.map(node => (
))}
); };