1 import { memo } from 'react';
3 import type { IconName } from '@proton/components';
4 import { Icon } from '@proton/components';
7 items: ({ text: string; icon?: IconName } | false)[];
10 export const IconList = memo(({ items }: Props) => {
12 <ul className="unstyled">
13 {items.map((item) => {
18 const { text, icon } = item;
21 <li key={text} className="flex items-center gap-2 my-1">
22 {icon ? <Icon name={icon} /> : null}
30 IconList.displayName = 'IconList';