elk/composables/injections.ts

10 lines
263 B
TypeScript
Raw Normal View History

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