"use client"; import { TeamHealth } from "@/types"; import { TeamHealthCard } from "./team-health-card"; import { Skeleton } from "@/components/ui/skeleton"; interface TeamHealthCardsProps { teams: TeamHealth[] | undefined; isLoading: boolean; } export function TeamHealthCards({ teams, isLoading }: TeamHealthCardsProps) { if (isLoading) { return (
{[...Array(4)].map((_, i) => ( ))}
); } if (!teams || teams.length === 0) { return (
No team health data available
); } return (
{teams.map((health) => ( ))}
); }