import React, { FC, Fragment } from 'react'; import classNames from 'classnames'; import { FlowCell } from '~/components/flow/FlowCell'; import { flowDisplayToPreset, ImagePresets, URLS } from '~/constants/urls'; import { FlowDisplay, IFlowNode, INode } from '~/types'; import { IUser } from '~/types/auth'; import { getURLFromString } from '~/utils/dom'; import { canEditNode } from '~/utils/node'; import styles from './styles.module.scss'; interface Props { nodes: IFlowNode[]; user: Partial; onChangeCellView: (id: INode['id'], flow: FlowDisplay) => void; } export const FlowGrid: FC = ({ user, nodes, onChangeCellView }) => { if (!nodes) { return null; } return ( {nodes.map(node => (
))}
); };