import { DriverProfileTemplate } from '@/templates/DriverProfileTemplate';
import { DriverProfileViewModel } from '@/lib/view-models/DriverProfileViewModel';

interface DriverProfileStaticProps {
  profileData: DriverProfileViewModel;
  teamMemberships: Array<{
    team: { id: string; name: string };
    role: string;
    joinedAt: Date;
  }>;
}

export async function DriverProfileStatic({ profileData, teamMemberships }: DriverProfileStaticProps) {
  return (
    <DriverProfileTemplate
      driverProfile={profileData}
      allTeamMemberships={teamMemberships}
      isLoading={false}
      error={null}
      onBackClick={() => {
        // This will be handled by the parent page component
        window.history.back();
      }}
      onAddFriend={() => {
        // Server component - no-op for static version
        console.log('Add friend - static mode');
      }}
      friendRequestSent={false}
      activeTab="overview"
      setActiveTab={() => {
        // Server component - no-op for static version
        console.log('Set tab - static mode');
      }}
      isSponsorMode={false}
    />
  );
}