'use client';

import React, { useState } from 'react';
import { SponsorLeagueDetailTemplate, type SponsorLeagueDetailViewData } from '@/templates/SponsorLeagueDetailTemplate';
import { ClientWrapperProps } from '@/lib/contracts/components/ComponentContracts';

export function SponsorLeagueDetailPageClient({ viewData }: ClientWrapperProps<SponsorLeagueDetailViewData>) {
  const [activeTab, setActiveTab] = useState<'overview' | 'drivers' | 'races' | 'sponsor'>('overview');
  const [selectedTier, setSelectedTier] = useState<'main' | 'secondary'>('main');

  return (
    <SponsorLeagueDetailTemplate
      viewData={viewData}
      activeTab={activeTab}
      setActiveTab={setActiveTab}
      selectedTier={selectedTier}
      setSelectedTier={setSelectedTier}
    />
  );
}
