mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-19 22:41:42 +01:00
15 lines
488 B
TypeScript
15 lines
488 B
TypeScript
import { shallowRef } from 'vue'
|
|
import { defineNuxtPlugin } from '#imports'
|
|
// FIXME: https://github.com/nuxt/module-builder/issues/141#issuecomment-2078248248
|
|
import type {} from '#app'
|
|
import { slideoverInjectionKey, type SlideoverState } from '../composables/useSlideover'
|
|
|
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
const slideoverState = shallowRef<SlideoverState>({
|
|
component: 'div',
|
|
props: {}
|
|
})
|
|
|
|
nuxtApp.vueApp.provide(slideoverInjectionKey, slideoverState)
|
|
})
|