hook.ts
hook.ts
import { drawerProviderInjectionKey } from './context'
export function useDrawer() {
const drawerInstance = inject(drawerProviderInjectionKey)
return drawerInstance!
}
hook.ts
import { drawerProviderInjectionKey } from './context'
export function useDrawer() {
const drawerInstance = inject(drawerProviderInjectionKey)
return drawerInstance!
}