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

import Form from "./Form"

export default async function EditProfile() {
  const user = await serverClient().user.get()
  if (!user) {
    return null
  }
  return <Form user={user} />
}
