import { useId } from 'react'; import { useTranslation } from 'react-i18next'; const ServerKitLogo = ({ width = 64, height = 64, className = '' }) => { const { t } = useTranslation(); // Unique per instance: multiple logos render at once (sidebar + mobile top // bar + auth screens). A shared gradient id collides in the DOM, and // url(#id) resolves to the first match — which can be a hidden 0x0 instance // whose objectBoundingBox gradient has no coordinate space, painting the // glyph as nothing. A unique id keeps each logo bound to its own gradient. const rawId = useId(); const gradId = `skBrandGradient-${rawId.replace(/:/g, '')}`; // Gradient tile + white 2-bar server glyph — matches the sidebar brand mark // (.brand-logo in _sidebar.scss: linear-gradient(--accent-bright, --accent) // tile with a white lucide `Server` icon) and the per-install favicon, so the // brand reads the same in the sidebar, auth screens, wizards and the tab icon. return ( ); }; export default ServerKitLogo;