2025-09-04 17:26:18 +05:30
|
|
|
interface SimulationData {
|
|
|
|
|
key: string;
|
|
|
|
|
data?: object | any;
|
|
|
|
|
}
|
|
|
|
|
export const saveSimulationData = ({ key, data }: SimulationData) => {
|
|
|
|
|
console.log("key: ", key);
|
|
|
|
|
localStorage.setItem(key, JSON.stringify(data));
|
|
|
|
|
};
|
|
|
|
|
export const getSimulationData = ({ key }: SimulationData) => {
|
|
|
|
|
const data = localStorage.getItem(key);
|
2025-09-06 15:19:36 +05:30
|
|
|
// console.log("data: ", JSON.parse(data || "{}"));
|
2025-09-04 17:26:18 +05:30
|
|
|
};
|
|
|
|
|
export const clearSimulationData = ({ key, data }: SimulationData) => {};
|