import { TeamMembersTable } from '@/components/teams/TeamMembersTable';
import { ReactNode } from 'react';

interface Member {
  driverId: string;
  driverName: string;
  role: string;
  joinedAt: string;
  joinedAtLabel: string;
}

interface RosterTableProps {
  members: Member[];
  isAdmin?: boolean;
  onRemoveMember?: (driverId: string) => void;
}

export function RosterTable({ members, isAdmin, onRemoveMember }: RosterTableProps) {
  return (
    <TeamMembersTable 
      members={members} 
      isAdmin={isAdmin} 
      onRemoveMember={onRemoveMember} 
      data-testid="roster-table"
    />
  );
}
