mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-18 22:11:43 +01:00
14 lines
411 B
TypeScript
14 lines
411 B
TypeScript
import { shallowRef } from 'vue'
|
|
import { slidOverInjectionKey } from '../composables/useSlideover'
|
|
import type { SlideoverState } from '../types/slideover'
|
|
import { defineNuxtPlugin } from '#imports'
|
|
|
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
const slideoverState = shallowRef<SlideoverState>({
|
|
component: 'div',
|
|
props: {}
|
|
})
|
|
|
|
nuxtApp.vueApp.provide(slidOverInjectionKey, slideoverState)
|
|
})
|