clapper / src /services /editors /useEditors.ts
jbilcke-hf's picture
jbilcke-hf HF staff
add linter and prettifier
c1f12bf
raw
history blame
340 Bytes
'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 })
},
}))