import { SalesChannel } from "@medusajs/medusa" import { useAdminSalesChannels } from "medusa-react" import React from "react" import Tooltip from "../../atoms/tooltip" import Badge from "../../fundamentals/badge" import { Trans, useTranslation } from "react-i18next" type Props = { channels?: SalesChannel[] } const SalesChannelsDisplay = ({ channels = [] }: Props) => { const { count } = useAdminSalesChannels() const remainder = Math.max(channels.length - 3, 0) const { t } = useTranslation() const availableChannelsCount = channels.length ? channels.length : 0 const totalChannelsCount = count || 0 return (