mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 09:04:55 +00:00
* feat: change modpack updating flow * fix: pending install state loss * fix: mods.vue perf problems * chore: todo doc * draft: try preload/fix suspense * fix: lint
16 lines
477 B
TypeScript
16 lines
477 B
TypeScript
import { createContext } from '@modrinth/ui'
|
|
import type { ComputedRef, Ref } from 'vue'
|
|
|
|
import type { GameInstance } from '@/helpers/types'
|
|
|
|
export interface InstanceSettingsContext {
|
|
instance: ComputedRef<GameInstance>
|
|
offline?: boolean
|
|
isMinecraftServer: Ref<boolean>
|
|
onUnlinked: () => void
|
|
closeModal?: () => void
|
|
}
|
|
|
|
export const [injectInstanceSettings, provideInstanceSettings] =
|
|
createContext<InstanceSettingsContext>('InstanceSettingsModal', 'instanceSettings')
|