import { Card, Group, Text, ThemeIcon, Badge, Avatar, Stack, Button, Progress, Box } from '@mantine/core' import { Link } from '@tanstack/react-router' import { TbDeviceMobile, TbActivity, TbAlertTriangle, TbChevronRight } from 'react-icons/tb' interface AppCardProps { id: string name: string status: 'active' | 'warning' | 'error' users: number errors: number version: string } export function AppCard({ id, name, status, users, errors, version }: AppCardProps) { const statusColor = status === 'active' ? 'teal' : status === 'warning' ? 'orange' : 'red' return ( ({ root: { backgroundColor: 'rgba(30, 41, 59, 0.4)', borderColor: 'rgba(255,255,255,0.08)', transition: 'transform 0.2s ease, box-shadow 0.2s ease', '&:hover': { transform: 'translateY(-4px)', boxShadow: '0 12px 24px -8px rgba(0, 0, 0, 0.4)', borderColor: 'rgba(37, 99, 235, 0.3)', }, }, })} > {name} BUILD v{version} {status.toUpperCase()} USER ADOPTION {users.toLocaleString()} 0 ? '#ef4444' : '#64748b'} /> HEALTH INCIDENTS 0 ? 'red' : 'dimmed'}>{errors} 0 ? 30 : 0} size="sm" color="red" radius="xl" /> ) }