Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

648 B
Raw Blame
import { create } from 'zustand';
import { createEditorSlice, type EditorSlice } from '../guide/store/editor-slice';
import { createGuideSlice, type GuideSlice } from '../guide/store/guide-slice';
import { createLibrarySlice, type LibrarySlice } from '../library/store/library-slice';
import { createSearchSlice, type SearchSlice } from '../search/store/search-slice';

export type FullviewStore = LibrarySlice & SearchSlice & GuideSlice & EditorSlice;

export const useFullviewStore = create<FullviewStore>()((...a) => ({
  ...createLibrarySlice(...a),
  ...createSearchSlice(...a),
  ...createGuideSlice(...a),
  ...createEditorSlice(...a),
}));