import { computed } from 'vue'
import { useAppStoreWithOut } from 'stores/app'


export default function () {
  const appStore = useAppStoreWithOut()

  const updater = computed(() => {
    return appStore.updater
  })

  const setUpdater = (key: string, value?: any) => {
    appStore.setUpdater(key, value)
  }

  return {
    updater,
    setUpdater,
  }
}
