'use client'; import Link from 'next/link'; import { Card, CardContent, CardHeader, CardTitle, CardDescription } from '@/components/ui'; import { Badge } from '@/components/ui'; import type { Team } from '@/lib/types'; interface TeamCardProps { team: Team & { userRole?: string; userOkrCount?: number; _count?: { members: number } }; } export function TeamCard({ team }: TeamCardProps) { const memberCount = team._count?.members || team.members?.length || 0; const okrCount = team.userOkrCount || 0; const isAdmin = team.userRole === 'ADMIN'; return ( 👥 {team.name} {team.description && {team.description}} {isAdmin && ( Admin )} {memberCount} membre{memberCount !== 1 ? 's' : ''} 🎯 {okrCount} OKR{okrCount !== 1 ? 's' : ''} ); }