diff --git a/web/src/components/icon-card.tsx b/web/src/components/icon-card.tsx index c8fe1e0a..bc7af1b3 100644 --- a/web/src/components/icon-card.tsx +++ b/web/src/components/icon-card.tsx @@ -7,12 +7,20 @@ import type { Icon } from "@/types/icons" export function IconCard({ name, data: iconData, matchedAlias }: { name: string; data: Icon; matchedAlias?: string }) { const formatedIconName = formatIconName(name) + + const isCommunityIcon = iconData.base.startsWith("http") + const imageUrl = isCommunityIcon + ? iconData.base + : `${BASE_URL}/${iconData.base}/${iconData.colors?.light || name}.${iconData.base}` + + const linkHref = isCommunityIcon ? `/community/${name}` : `/icons/${name}` + return ( - +