first commit

This commit is contained in:
2025-08-16 09:52:47 +05:30
commit 4319823c76
249 changed files with 1192986 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
export const getDynamicIcon = async (name: string): Promise<string> => {
let icon = "";
let [prefix, iconName] = name.split(":");
await import(`../data/iconify/${prefix}.json`).then(module => {
icon = module.icons[iconName].body;
}).catch(error => {
console.error('Failed to load icon:', error);
});
return icon
}