
import { getServerSession } from 'next-auth';
import { authOptions } from '@/lib/auth';
import { redirect } from 'next/navigation';
import { ContractsPageClient } from '@/components/contracts/contracts-page-client';

export default async function ContractsPage() {
  const session = await getServerSession(authOptions);

  if (!session) {
    redirect('/auth/signin');
  }

  return <ContractsPageClient />;
}
