File size: 340 Bytes
c1f12bf
083ce88
c1f12bf
 
083ce88
c1f12bf
083ce88
 
 
c1f12bf
 
 
083ce88
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use client'

import { create } from 'zustand'
import { EditorsStore, EditorView } from '@aitube/clapper-services'

import { getDefaultEditorsState } from './getDefaultEditorsState'

export const useEditors = create<EditorsStore>((set, get) => ({
  ...getDefaultEditorsState(),
  setView: (view: EditorView) => {
    set({ view })
  },
}))