import Link from 'next/link';
import { PaginatedTable } from './_components/PaginatedTable';
import { Header } from './_components/ui/Header';
import { PrismaClient } from '@repo/db';

export default async function Home() {
  return (
    <div>
      <Header />
      <PaginatedTable
        rowsPerPage={10}
        prismaModel={'user'}
        columns={[
          {
            header: 'ID',
            accessorKey: 'id',
          },
          {
            header: 'Email',
            accessorKey: 'email',
          },
          {
            header: 'First Name',
            accessorKey: 'firstname',
          },
          {
            header: 'Last Name',
            accessorKey: 'lastname',
            footer: 'Total',
          },
        ]}
      />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
      gd
      <br />
    </div>
  );
}
