import { useTranslation } from 'react-i18next'; import { cn } from '@/lib/utils'; import { getBrand } from '@/lib/brand'; import type { BrandLogo as BrandLogoFiles } from '@/lib/brand'; interface BrandLogoProps { /** Overrides the site brand; mainly for tests and, later, a logo loaded from site settings. */ logo?: BrandLogoFiles | null; className?: string; } /** * The site's logo, or, when it has none, the application name with its dot (what the admin always * showed). The single place the admin draws the brand: do not hardcode it elsewhere. */ export function BrandLogo({ logo, className }: BrandLogoProps) { const { t } = useTranslation(); const resolved = logo === undefined ? getBrand().logo : logo; const name = t('common.appName'); if (resolved === null) { return (