import clsx from 'clsx' import { DaoInfoCardsProps } from '@dao-dao/types' import { TooltipInfoIcon } from '../tooltip' export const DaoInfoCards = ({ cards, className, wrap, valueClassName, }: DaoInfoCardsProps) => (
{cards.map(({ Icon, label, tooltip, loading, warning, value }, index) => (
{Icon && (
)}

{label}

{tooltip && ( )}
{/* Make sure to render 0. */} {value || typeof value === 'number' ? value : loading && '...'}
))}
)