import { inject, type ComputedRef, type InjectionKey } from "vue"; export interface ConfigContext { dir: ComputedRef<"ltr" | "rtl">; locale: ComputedRef; } export const configContextKey: InjectionKey = Symbol("hv-config"); export function useConfig() { return inject(configContextKey, undefined); }