Files
pulsenode/components/widgets/BrandIcon.tsx
T

14 lines
407 B
TypeScript
Raw Normal View History

import { BRAND_ICON_PATHS } from "@/lib/brand-icons";
export function BrandIcon({ slug, size = 18 }: { slug?: string; size?: number }) {
if (!slug) return null;
const path = BRAND_ICON_PATHS[slug];
if (!path) return null;
return (
<svg width={size} height={size} viewBox="0 0 24 24" fill="currentColor" className="shrink-0 text-fg-muted" aria-hidden>
<path d={path} />
</svg>
);
}