// /src/app/profile/[steamId]/layout.tsx import type { ReactNode } from 'react' import { notFound } from 'next/navigation' import { prisma } from '@/app/lib/prisma' import Card from '@/app/components/Card' import UserHeader from '@/app/components/UserHeader' export default async function ProfileLayout({ children, params, }: { children: ReactNode params: { steamId: string } }) { const user = await prisma.user.findUnique({ where: { steamId: params.steamId }, select: { steamId: true, name: true, avatar: true, premierRank: true, }, }) if (!user) return notFound() return (
{children}
) }