import { isVue3 } from 'vue-demi' // this line can be used from @vueuse/shared export const isClient = typeof window !== 'undefined' // this line can be used from @vueuse/shared for reduce size of lib but it's requires to build two time one // 1. with local utils // 2. with @vueuse utils // borrowed from @vueuse export const directiveHooks = /* #__PURE__ */ { mounted: (isVue3 ? 'mounted' : 'inserted') as 'mounted', updated: (isVue3 ? 'updated' : 'componentUpdated') as 'updated', unmounted: (isVue3 ? 'unmounted' : 'unbind') as 'unmounted', }