1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-26 09:33:22 +00:00
Files
browser/libs/angular/src/tools/achievements/icons/iconMap.ts
Daniel James Smith d9edf1149c Add ability to display achievement specific icons
Ideally the name of the icon is present on the achievement configuration. Currently a iconMap is used to lookup the icon by achievementId
2025-03-20 23:03:06 +01:00

16 lines
463 B
TypeScript

import { Icon } from "@bitwarden/components";
import {
OneLoginItemCreatedIcon,
TenLoginItemsCreatedIcon,
FiftyLoginItemsCreatedIcon,
OneHundredLoginItemsCreatedIcon,
} from "./login";
export const iconMap: { [key: string]: Icon } = {
"login-item-created": OneLoginItemCreatedIcon,
"10-login-items-added": TenLoginItemsCreatedIcon,
"50-login-items-added": FiftyLoginItemsCreatedIcon,
"100-login-items-added": OneHundredLoginItemsCreatedIcon,
};