* fix: findLang only returns acceptable languages * fix: fallback to use header x-lang if we haven't setLang yet * fix: languageSchema, allow uppercase Approved-by: Linus Flood
14 lines
364 B
TypeScript
14 lines
364 B
TypeScript
import { getProfile } from "@/lib/trpc/memoizedRequests"
|
|
|
|
import Form from "@/components/Forms/Edit/Profile"
|
|
|
|
import type { LangParams, PageArgs } from "@/types/params"
|
|
|
|
export default async function EditProfileSlot({}: PageArgs<LangParams>) {
|
|
const user = await getProfile()
|
|
if (!user || "error" in user) {
|
|
return null
|
|
}
|
|
return <Form user={user} />
|
|
}
|