mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 14:51:12 -05:00
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
interface QueueStatsProps {
|
|
stats: {
|
|
pendingCount: number;
|
|
assignedToMe: number;
|
|
avgWaitHours: number;
|
|
};
|
|
isMobile?: boolean;
|
|
}
|
|
|
|
export const QueueStats = ({ stats, isMobile }: QueueStatsProps) => {
|
|
return (
|
|
<div className="grid grid-cols-2 sm:grid-cols-3 gap-4 flex-1">
|
|
<div className="text-center sm:text-left">
|
|
<div className="text-2xl font-bold text-primary">{stats.pendingCount}</div>
|
|
<div className="text-xs text-muted-foreground">Pending</div>
|
|
</div>
|
|
<div className="text-center sm:text-left">
|
|
<div className="text-2xl font-bold text-blue-600 dark:text-blue-400">{stats.assignedToMe}</div>
|
|
<div className="text-xs text-muted-foreground">Assigned to Me</div>
|
|
</div>
|
|
<div className="text-center sm:text-left">
|
|
<div className="text-2xl font-bold text-green-600 dark:text-green-400">
|
|
{stats.avgWaitHours.toFixed(1)}h
|
|
</div>
|
|
<div className="text-xs text-muted-foreground">Avg Wait</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
QueueStats.displayName = 'QueueStats';
|