import { useTranslation } from "react-i18next"; import { Card, CardContent } from "@/components/ui/card"; import { Skeleton } from "@/components/ui/skeleton"; import { cn } from "@/lib/utils"; function Bar({ className }: { className: string }) { return ( ); } function Metric({ footer = true }: { footer?: boolean }) { return (
{footer && (
)}
); } export default function OnlineHistorySkeleton({ days = 7 }: { days?: number }) { const { t } = useTranslation(); const dayCount = Math.min(31, Math.max(1, days) + 1); const cardClassName = cn({ "bg-card/70": typeof window !== "undefined" && Boolean(window.CustomBackgroundImage), }); return (
); }