/* * SPDX-FileCopyrightText: 2020 Stalwart Labs LLC * SPDX-FileCopyrightText: 2026 Coffey Labs * * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL * * Modified by Coffey Labs in 2026 for INBUXA. */ import { useEffect, useSyncExternalStore } from 'react'; import { useTranslation } from 'react-i18next'; import { getLogoState, loadLogoOnce, subscribeToLogo } from '@/lib/logoCache'; import inbuxaMark from '@/assets/inbuxa-mark.png'; export function DefaultLogo() { const { t } = useTranslation(); // The INBUXA compact lockup: the mark as an image, the wordmark as vector // paths in the current text color, so it reads on light and dark themes. return ( ); } export default function Logo() { const { t } = useTranslation(); const logo = useSyncExternalStore(subscribeToLogo, getLogoState, getLogoState); useEffect(() => { loadLogoOnce(); }, []); if (logo.status === 'custom') { return {t('logo.alt',; } if (logo.status === 'loading') { return