elk/composables/injections.ts

10 lines
263 B
TypeScript
Raw Normal View History

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