import { InjectionKey, Ref } from 'vue'; import { createContext, useContext } from '/@/hooks/core/useContext'; export interface LayoutContextProps { fullHeaderRef: Ref; } const layoutContextInjectKey: InjectionKey = Symbol(); export function createLayoutContext(context: LayoutContextProps) { return createContext(context, layoutContextInjectKey); } export function useLayoutContext() { return useContext(layoutContextInjectKey); }