import { memo, Fragment } from 'react'; import Grid from '@mui/material/Grid'; import Divider from '@mui/material/Divider'; import clsx from 'clsx'; import { IconInfoItem } from '../icon-info-item'; import createClasses from './styles'; import { IconInfoItemProps } from '../types'; export interface IconInfoItemListProps { /** * Whether to render iconInfoItems in a compact design (without wrapping) or not. */ renderCompact?: boolean; /** * List of icon info items to display */ list: IconInfoItemProps[]; } export const IconInfoItemList = memo((props: IconInfoItemListProps) => { const { renderCompact, list } = props; const styles = createClasses(); return ( {list.map((item, index: number) => ( {index > 0 && ( )} ))} ); });