import { PersonIcon } from "@radix-ui/react-icons";
import { PrismaClient, User } from "@repo/db";
import { AdminForm, ProfileForm } from "./_components/forms";
import { Error } from "../../../../_components/Error";
export default async ({ params }: { params: { id: string } }) => {
const prisma = new PrismaClient();
const { id } = await params;
const user: User | null = await prisma.user.findUnique({
where: {
id: id,
},
});
if (!user) return