2025-04-24 20:38:09 +02:00
|
|
|
import type { Icon } from "@/types/icons"
|
|
|
|
|
|
|
|
import { IconCard } from "./icon-card"
|
|
|
|
|
|
|
|
interface IconsGridProps {
|
|
|
|
filteredIcons: { name: string; data: Icon }[]
|
|
|
|
matchedAliases: Record<string, string>
|
|
|
|
}
|
|
|
|
|
|
|
|
export function IconsGrid({ filteredIcons, matchedAliases }: IconsGridProps) {
|
|
|
|
return (
|
2025-04-24 22:47:07 +02:00
|
|
|
<div className="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8 gap-4 mt-2">
|
|
|
|
{filteredIcons.slice(0, 120).map(({ name, data }) => (
|
|
|
|
<IconCard key={name} name={name} data={data} matchedAlias={matchedAliases[name]} />
|
|
|
|
))}
|
|
|
|
</div>
|
2025-04-24 20:38:09 +02:00
|
|
|
)
|
|
|
|
}
|