// import { createStore } from 'vuex'
// import { computed } from 'vue'

// const store = createStore({
//   state: {},
//   mutations: {
//     changeState(state: any, payload: any) {
//       state[payload.key] = payload.value
//     },
//   },
// })
// export default function useStore(key: string, value: unknown): any {
//   store.commit('changeState', { key, value })
//   const setFn = (val: unknown) => {
//     store.commit('changeState', { key, val })
//   }
//   return [computed(() => store.state[key]), setFn]
// }

// // const [count, setCount] = useStore('count', 0)
