mirror of
https://gh-proxy.org/https://github.com/tiajinsha/JKVideo
synced 2026-07-07 23:18:38 +08:00
12 lines
258 B
TypeScript
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 }),
|
||
|
|
}));
|