import { PageWrapper } from '@/components/shared/state/PageWrapper';
import { DriversTemplate } from '@/templates/DriversTemplate';
import { PageDataFetcher } from '@/lib/page/PageDataFetcher';
import { DRIVER_SERVICE_TOKEN } from '@/lib/di/tokens';
import type { DriverService } from '@/lib/services/drivers/DriverService';

export default async function Page() {
  const data = await PageDataFetcher.fetch<DriverService, 'getDriverLeaderboard'>(
    DRIVER_SERVICE_TOKEN, 
    'getDriverLeaderboard'
  );
  
  return <PageWrapper data={data} Template={DriversTemplate} />;
}