import { FC } from 'react'; import { ICatalogNode } from '../../../../api'; import { CatalogNavigationItemView } from './CatalogNavigationItemView'; export interface CatalogNavigationSetViewProps { node: ICatalogNode; child?: boolean; } export const CatalogNavigationSetView: FC = props => { const { node = null, child = false } = props; return ( <> { node && (node.children.length > 0) && node.children.map((n, index) => { if(!n.isVisible) return null; return ; }) } ); };