'use client'; import { Users, Trophy, Target } from 'lucide-react'; import Link from 'next/link'; import TeamLeaderboardPreview from '@/components/teams/TeamLeaderboardPreview'; import Button from '@/components/ui/Button'; import Card from '@/components/ui/Card'; import type { TeamsViewData, TeamSummaryData } from './view-data/TeamsViewData'; interface TeamsTemplateProps extends TeamsViewData { searchQuery?: string; showCreateForm?: boolean; onSearchChange?: (query: string) => void; onShowCreateForm?: () => void; onHideCreateForm?: () => void; onTeamClick?: (teamId: string) => void; onCreateSuccess?: (teamId: string) => void; onBrowseTeams?: () => void; onSkillLevelClick?: (level: string) => void; } export function TeamsTemplate({ teams, searchQuery, onSearchChange, onShowCreateForm, onTeamClick }: TeamsTemplateProps) { return (
{/* Header */}

Teams

Browse and manage your racing teams

{/* Teams Grid */} {teams.length > 0 ? (
{teams.map((team: TeamSummaryData) => (
{team.logoUrl ? ( {team.teamName} ) : (
)}

{team.teamName}

{team.leagueName}

{team.memberCount} members
))}
) : (

No teams yet

Get started by creating your first racing team

)} {/* Team Leaderboard Preview */}

Top Teams

{}} />
); }