This commit is contained in:
GH Action - Upstream Sync
2024-09-10 00:42:22 +00:00
8 changed files with 96 additions and 26 deletions

View File

@@ -1,5 +1,8 @@
import { StateStorage } from "zustand/middleware";
import { get, set, del, clear } from "idb-keyval";
import { safeLocalStorage } from "@/app/utils";
const localStorage = safeLocalStorage();
class IndexedDBStorage implements StateStorage {
public async getItem(name: string): Promise<string | null> {