import { Icon, Text, TooltipPopup } from 'react-basics'; import Icons from 'components/icons'; import Empty from 'components/common/Empty'; import { useMessages } from 'hooks'; import styles from './ParameterList.module.css'; export function ParameterList({ items = [], children, onRemove }) { const { formatMessage, labels } = useMessages(); return (
{!items.length && } {items.map((item, index) => { return (
{typeof children === 'function' ? children(item) : item}
); })}
); } export default ParameterList;