"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.keyLabel = void 0;
const keyLabelStorageName = 'poly_keylabels';
const noLabelDefault = '[No label]';
const keyLabelStorage = JSON.parse(localStorage.getItem(keyLabelStorageName) || '{}');
const saveKeyLabel = (address, label) => {
    keyLabelStorage[address] = label;
    localStorage.setItem(keyLabelStorageName, JSON.stringify(keyLabelStorage));
};
exports.keyLabel = {
    storageName: keyLabelStorageName,
    noLabelDefault,
    storage: keyLabelStorage,
    save: saveKeyLabel,
};
//# sourceMappingURL=keyLabelStorage.js.map