export const LocalStorageManager = {recordKey: "Record",get(key) {try {const value = localStorage.getItem(key);if (value === null || value === undefined || value === "") {return null;}return JSON.parse(localStorage.getItem(key));} catch (err) {return null;}},set(key, value) {return localStorage.setItem(key, JSON.stringify(value));},remove(key) {return localStorage.removeItem(key);},clear() {return localStorage.clear();},getDataStartingWith(prefix) {let data = {};for (let key in localStorage) {if (key.startsWith(prefix)) {data[key] = JSON.parse(localStorage.getItem(key));}}return data;}
};