import { shallowRef } from "vue"; import { createTernentApi } from "./index"; const apiState = shallowRef | null>(null); export function useTernent() { apiState.value ??= createTernentApi(); return apiState; }