import LocalStorage from "../UI/Utils/LocalStorage";
export var UserPreferenceType;
(function (UserPreferenceType) {
    UserPreferenceType["BaseModelTablePageSize"] = "BaseModelTablePageSize";
})(UserPreferenceType || (UserPreferenceType = {}));
export default class UserPreferences {
    static getUserPreferenceByTypeAsNumber(data) {
        const { key, userPreferenceType } = data;
        const finalKey = `${userPreferenceType}.${key}`;
        const numberValue = LocalStorage.getItem(finalKey);
        return numberValue;
    }
    // save user preference
    static saveUserPreferenceByTypeAsNumber(data) {
        const { key, userPreferenceType, value } = data;
        const finalKey = `${userPreferenceType}.${key}`;
        LocalStorage.setItem(finalKey, value);
    }
}
//# sourceMappingURL=UserPreferences.js.map