import { Metadata } from 'next'

import Breadcrumb from '@/lib/components/Breadcrumb'
import MainContent from './MainContent'

export const metadata: Metadata = {
  title: 'User Performance Detail',
}

interface PageProps {
  params: Promise<{ user: string }>
}

export default async function UserPerformanceDetailPage({ params }: PageProps) {
  const { user } = await params

  return (
    <div>
      <div className="print:hidden">
        <Breadcrumb
          items={[
            { name: 'Dashboard', href: '/', icon: 'dashboard' },
            { name: 'User Performance', href: '/user-performance' },
            { name: 'Detail' },
          ]}
        />
      </div>
      <div className="px-4 sm:px-8 my-8 print:m-0 print:p-0">
        <MainContent userId={user} />
      </div>
    </div>
  )
}
