mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +00:00
introduce store with idle tracking
This commit is contained in:
13
apps/expo/src/stores/player/store.ts
Normal file
13
apps/expo/src/stores/player/store.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { create } from "zustand";
|
||||
import { immer } from "zustand/middleware/immer";
|
||||
|
||||
import type { AllSlices } from "./slices/types";
|
||||
import { createInterfaceSlice } from "./slices/interface";
|
||||
import { createVideoSlice } from "./slices/video";
|
||||
|
||||
export const usePlayerStore = create(
|
||||
immer<AllSlices>((...a) => ({
|
||||
...createInterfaceSlice(...a),
|
||||
...createVideoSlice(...a),
|
||||
})),
|
||||
);
|
Reference in New Issue
Block a user