elk/composables/injections.ts

10 lines
263 B
TypeScript
Raw Normal View History

2023-01-03 14:58:08 +03:00
import { InjectionKeyDropdownContext, InjectionKeyFontSize } from '~/constants/symbols'
export function useFontSizeRef() {
return inject(InjectionKeyFontSize)!
}
2023-01-03 14:58:08 +03:00
export function useDropdownContext() {
return inject(InjectionKeyDropdownContext, undefined)
}