forked from didirus/AstralRinth
* Refactor search page, migrate to /discover/ * Add NormalPage component for common layouts, refactor Collections page as an example, misc ui pkg cleanup * intl:extract * lint * lint * remove old components * Refactor search page, migrate to /discover/ * Add NormalPage component for common layouts, refactor Collections page as an example, misc ui pkg cleanup * intl:extract * lint * lint * remove old components
14 lines
319 B
TypeScript
14 lines
319 B
TypeScript
import type { Labrinth } from '@modrinth/api-client'
|
|
import type { Ref } from 'vue'
|
|
|
|
import { createContext } from '.'
|
|
|
|
export interface UserPageContext {
|
|
user: Ref<Labrinth.Users.v3.User>
|
|
}
|
|
|
|
export const [injectUserPageContext, provideUserPageContext] = createContext<UserPageContext>(
|
|
'root',
|
|
'userPageContext',
|
|
)
|