import { serverClient } from "@/lib/trpc/server"

import Form from "@/components/Forms/Edit/Profile"

export default async function EditProfileSlot() {
  const user = await serverClient().user.get({ mask: false })
  if (!user || "error" in user) {
    return null
  }
  return <Form user={user} />
}
