import { IContext } from 'overmind'
} from 'overmind-vue/vue3'
import { state } from './state'
import * as actions from './actions'
export type Context = IContext<typeof config>
state: createStateHook<Context>(),
actions: createActionsHook<Context>(),
effects: createEffectsHook<Context>(),
reaction: createReactionHook<Context>()
import { createOvermind } from 'overmind'
import { withOvermind } from 'overmind-vue/vue3'
import { config } from './overmind'
import App from './App.vue'
const overmind = createOvermind(config)
createApp(withOvermind(overmind, App)).mount('#app')
// components/SomeComponent.vue
<div @click="actions.onClick">
import { hooks } from '../overmind'
const state = hooks.state()
const actions = hooks.actions()
return { state, actions }