1234567891011121314151617 |
- // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- import { injectSvgIcons } from '#shared/components/CommonIcon/injectIcons.ts'
- import { provideIcons } from '#shared/components/CommonIcon/useIcons.ts'
- import iconsAliases from './desktopIconsAliasesMap.ts'
- const iconsSymbolsList = Object.entries(
- import.meta.glob<{ default: string }>('./assets/*.svg', {
- eager: true,
- query: '?symbol',
- }),
- )
- export const initializeDesktopIcons = () => {
- const { symbols } = provideIcons(iconsSymbolsList, iconsAliases)
- injectSvgIcons(symbols)
- }
|