mirror of
https://github.com/p-stream/p-stream.git
synced 2026-08-09 00:17:45 +00:00
13 lines
378 B
TypeScript
13 lines
378 B
TypeScript
import { create } from "zustand";
|
|
|
|
type OverlayType = "volume" | "subtitle" | "speed" | null;
|
|
|
|
interface OverlayStackStore {
|
|
currentOverlay: OverlayType;
|
|
setCurrentOverlay: (overlay: OverlayType) => void;
|
|
}
|
|
|
|
export const useOverlayStack = create<OverlayStackStore>((set) => ({
|
|
currentOverlay: null,
|
|
setCurrentOverlay: (overlay) => set({ currentOverlay: overlay }),
|
|
}));
|