import * as React from 'react'; import * as _ from 'lodash'; import { Extendable, Box, Flex, Header, List, ListItemProps, Segment, ShorthandCollection, } from '@fluentui/react-northstar'; import { AcceptIcon, CloseIcon } from '@fluentui/react-icons-northstar'; export type ComponentBestPracticesProps = Extendable<{ doList?: ShorthandCollection; dontList?: ShorthandCollection; }>; const ComponentBestPractices: React.FC = ({ doList, dontList }) => { const updatedDoList: ShorthandCollection = []; const updatedDontList: ShorthandCollection = []; if (_.size(doList) > 0) { _.map(doList, element => { updatedDoList.push({ key: doList.indexOf(element), content: element, media: , }); }); } if (_.size(dontList) > 0) { _.map(dontList, element => { updatedDontList.push({ key: dontList.indexOf(element), content: element, media: , }); }); } return ( <> {_.size(doList) > 0 && _.size(dontList) > 0 ? (
) : _.size(doList) > 0 ? (
) : _.size(dontList) > 0 ? (
) : ( <> )} ); }; export default ComponentBestPractices;