feat: migrate Modal Popover and Tooltip with shared overlay foundation
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { inject, type ComputedRef, type InjectionKey } from "vue";
|
||||
|
||||
export interface ConfigContext {
|
||||
dir: ComputedRef<"ltr" | "rtl">;
|
||||
locale: ComputedRef<string>;
|
||||
}
|
||||
export const configContextKey: InjectionKey<ConfigContext> =
|
||||
Symbol("hv-config");
|
||||
export function useConfig() {
|
||||
return inject(configContextKey, undefined);
|
||||
}
|
||||
Reference in New Issue
Block a user