import type { InjectionKey } from 'vue'; import { createContext, useContext } from '/@/hooks/core/useContext'; export interface FormContextProps { resetAction: () => Promise; submitAction: () => Promise; } const key: InjectionKey = Symbol(); export function createFormContext(context: FormContextProps) { return createContext(context, key); } export function useFormContext() { return useContext(key); }