import * as _ from 'lodash'; import * as PropTypes from 'prop-types'; import * as React from 'react'; import { Link } from 'react-router-dom'; import { List, Header } from '@fluentui/react-northstar'; import { getComponentPathname, getInfoForSeeTags } from '../../utils'; const listStyle = { display: 'block' }; const ComponentDocSee: any = ({ displayName }) => { const items = getInfoForSeeTags(displayName); if (_.isEmpty(items)) return null; return ( {/* Heads up! Still render empty lists to reserve the whitespace */}
0 ? 'See:' : ' '} /> {_.map(items, (info, index) => ( ))} ); }; ComponentDocSee.propTypes = { displayName: PropTypes.string.isRequired, }; export default ComponentDocSee;