import { InjectionKey } from 'vue'; import { createContext, useContext } from '/@/hooks/core/useContext'; export interface ModalContextProps { redoModalHeight: () => void; } const key: InjectionKey = Symbol(); export function createModalContext(context: ModalContextProps) { return createContext(context, key); } export function useModalContext() { return useContext(key); }