erp-platform/ui/src/configs/navigation-icon.config.tsx
2025-08-16 22:47:24 +03:00

18 lines
No EOL
620 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import * as fc from 'react-icons/fc'
import * as fa from 'react-icons/fa'
export type NavigationIcons = Record<string, React.ComponentType<any>>;
const navigationIcon: NavigationIcons = {};
// fc (Font Awesome) ikonlarıyla dinamik olarak navigationIcon nesnesini doldur
for (const [key, Icon] of Object.entries(fc)) {
navigationIcon[key] = Icon; // Icon bileşenini doğrudan kullanıyoruz
}
// fa (Font Awesome) ikonlarıyla navigationIcon nesnesini doldur
for (const [key, Icon] of Object.entries(fa)) {
navigationIcon[key] = Icon; // Icon bileşenini doğrudan kullanıyoruz
}
export default navigationIcon;