import { Tooltip, clx } from "@medusajs/ui" import { useTranslation } from "react-i18next" type ListSummaryProps = { /** * 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 variant?: "base" | "compact" className?: string } export const ListSummary = ({ list, className, variant = "compact", inline, n = 2, }: ListSummaryProps) => { const { t } = useTranslation() const title = t("general.plusCountMore", { count: list.length - n, }) return (