Centrally define filled icons

So we don't have to manually pass the option everywhere
This commit is contained in:
raucao committed 2026-03-20 16:55:19 +04:00
1 parent f2a2d910a0
commit 5fd4ebe184
3 files changed
+14 -4

No files matched your search

+6
View File
@@ -64,6 +64,12 @@ const ICONS = {
zap,
};
const FILLED_ICONS = ['fork-and-knife', 'wikipedia'];
export function getIcon(name) {
return ICONS[name];
}
export function isIconFilled(name) {
return FILLED_ICONS.includes(name);
}