mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 17:14:50 +00:00
10 lines
348 B
TypeScript
10 lines
348 B
TypeScript
import { createContext } from '@modrinth/ui'
|
|
import type { Ref } from 'vue'
|
|
|
|
/**
|
|
* Informs the default layout of the current project ID, if any, because it can't be gleaned from the route which may be a slug
|
|
*/
|
|
export const [injectCurrentProjectId, provideCurrentProjectId] = createContext<
|
|
Ref<string | undefined>
|
|
>('root', 'currentProjectId')
|