import { getProfile } from "@/lib/trpc/memoizedRequests"

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

import styles from "./page.module.css"

export default async function EditProfileSlot() {
  const user = await getProfile()
  if (!user || "error" in user) {
    return null
  }
  return (
    <>
      <div className={styles.container}>
        <Form user={user} />
      </div>
    </>
  )
}
