import { Badge, Tooltip, clx } from "@medusajs/ui" import { useTranslation } from "react-i18next" type BadgeListSummaryProps = { /** * Number of initial items to display * @default 2 */ n?: number /** * List of strings to display as abbreviated list */ list: string[] /** * Is the summary displayed inline. * Determines whether the center text is truncated if there is no space in the container */ inline?: boolean /** * Whether the badges should be rounded */ rounded?: boolean className?: string } export const BadgeListSummary = ({ list, className, inline, rounded = false, n = 2, }: BadgeListSummaryProps) => { const { t } = useTranslation() const title = t("general.plusCount", { count: list.length - n, }) return (