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