Files
JKVideo/store/visibleBigKeyStore.ts
Developer 53c67079a1 bug修改
2026-05-12 20:27:30 +08:00

12 lines
258 B
TypeScript

import { create } from "zustand";
interface VisibleBigKeyState {
key: string | null;
setKey: (key: string | null) => void;
}
export const useVisibleBigKeyStore = create<VisibleBigKeyState>((set) => ({
key: null,
setKey: (key) => set({ key }),
}));