import { cn } from '@/lib/utils' import { useFavoriteRelaysActivity } from '@/providers/favorite-relays-activity-context' import { RelayPulseActiveNpubsOpenButton } from './RelayPulseActiveNpubsSheet' import { useTranslation } from 'react-i18next' export { relativePastPhrase, useRelativePastPhrase } from './relay-pulse-relative-time' /** Home feed / mobile: compact row above the page title (no section label — opens sheet for detail). */ export function FavoriteRelaysActiveStripMobileBar({ className }: { className?: string }) { const { t } = useTranslation() const { totalCount, loading, relayActivityReady } = useFavoriteRelaysActivity() if (!relayActivityReady && !loading) { return (
) } if (relayActivityReady && !loading && totalCount === 0) { return (

{t('Relay pulse empty')}

) } return (
) } /** Desktop sidebar: compact row under nav */ export function FavoriteRelaysActiveStripSidebar({ className }: { className?: string }) { const { t } = useTranslation() const { totalCount, loading, relayActivityReady } = useFavoriteRelaysActivity() if (!relayActivityReady && !loading) { return (

{t('Relay pulse')}

) } if (relayActivityReady && !loading && totalCount === 0) { return (

{t('Relay pulse')}

{t('Relay pulse empty')}

) } return (

{t('Relay pulse')}

) }