Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 2x 2x 2x 3576x | import IconLibrary from '@/components/IconLibrary';
import { isIconArray } from '@/lib/icons';
import iconsJson from '../../../../content/icons/index.json' with { type: 'json' };
export default function IconLibraryPage() {
Iif (!isIconArray(iconsJson)) {
throw new Error('content/icons/index.json failed shape validation - re-run `yarn build-icons`');
}
const icons = iconsJson;
return (
<article>
<h1>Icons</h1>
<p>
{icons.length} icons across {new Set(icons.map((i) => i.category)).size} categories. Search matches
icon names first, then synonyms.
</p>
<IconLibrary icons={icons} />
</article>
);
}
|