import { createContext } from '@modrinth/ui' import type { ComputedRef, Ref } from 'vue' import type { GameInstance } from '@/helpers/types' export interface InstanceSettingsContext { instance: ComputedRef offline?: boolean isMinecraftServer: Ref onUnlinked: () => void } export const [injectInstanceSettings, provideInstanceSettings] = createContext('InstanceSettingsModal', 'instanceSettings')