mirror of
https://github.com/bitwarden/browser
synced 2026-02-12 06:23:38 +00:00
Merge branch 'main' into auth/pm-22723/policy-service-updates
This commit is contained in:
24
libs/common/src/vault/types/cipher-menu-items.ts
Normal file
24
libs/common/src/vault/types/cipher-menu-items.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { CipherType } from "../enums";
|
||||
|
||||
/**
|
||||
* Represents a menu item for creating a new cipher of a specific type
|
||||
*/
|
||||
export type CipherMenuItem = {
|
||||
/** The cipher type this menu item represents */
|
||||
type: CipherType;
|
||||
/** The icon class name (e.g., "bwi-globe") */
|
||||
icon: string;
|
||||
/** The i18n key for the label text */
|
||||
labelKey: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* All available cipher menu items with their associated icons and labels
|
||||
*/
|
||||
export const CIPHER_MENU_ITEMS = Object.freeze([
|
||||
{ type: CipherType.Login, icon: "bwi-globe", labelKey: "typeLogin" },
|
||||
{ type: CipherType.Card, icon: "bwi-credit-card", labelKey: "typeCard" },
|
||||
{ type: CipherType.Identity, icon: "bwi-id-card", labelKey: "typeIdentity" },
|
||||
{ type: CipherType.SecureNote, icon: "bwi-sticky-note", labelKey: "note" },
|
||||
{ type: CipherType.SshKey, icon: "bwi-key", labelKey: "typeSshKey" },
|
||||
] as const) satisfies readonly CipherMenuItem[];
|
||||
Reference in New Issue
Block a user