import loginClinicImage from '../assets/figma/login-clinic.png' import { FeatureBadge, FeatureCallout } from '../components/FeatureState.jsx' import { featurePanelClass } from '../components/featureStateStyles.js' import { homeRepository } from '../repositories/homeRepository.js' export function HomePage({ navigate }) { const { appointmentsToday, metrics, reportCards } = homeRepository.getDashboardOverview() return (

Visão Geral da Clínica

Bem-vindo, Dr. Henrique. Aqui está o resumo da sua clínica hoje.

{metrics.map((metric) => ( ))}

Insights de IA

Evolução de absenteísmo e risco da semana

Pacientes de hoje

{appointmentsToday.map((item) => ( ))}

Alerta preditivo

3 pacientes apresentam risco de falta. Recomenda-se confirmar presença antes das 16h.

Analytics

{reportCards.slice(0, 2).map((card) => ( ))}
{reportCards.slice(2).map((card) => ( ))}
) } function MetricCard({ metric }) { return (

{metric.label}

{metric.value}

{metric.change}

) } function ReportAction({ card, navigate }) { return ( ) } function LineChart() { return ( {[48, 112, 176, 232].map((y) => ( ))} 18 12 6 ) } function metricTone(tone) { if (tone === 'violet') { return 'bg-[#322b3d] text-[#8b5cf6]' } if (tone === 'green') { return 'bg-[#123328] text-[#10b981]' } return 'bg-[#1d2f4f] text-[#3b82f6]' } function ReportIcon({ className = 'size-6', name }) { if (name === 'users') { return ( ) } if (name === 'building') { return ( ) } if (name === 'brand') { return ( ) } return ( ) } function SparkLineIcon({ className = 'size-6' }) { return ( ) } function ChevronRightIcon({ className = 'size-5' }) { return ( ) }