import { InsightMetricCard } from "@/components/insights/InsightMetricCard"; import { useInsight } from "@/hooks/useInsights.queries"; import { Colors } from "@/constants/theme"; export const DailySleepWidget = () => { const { data: insight, isLoading } = useInsight("DAILY_SLEEP"); const metadata = insight?.metadata; const diffMinutes = metadata?.diffMinutes ?? null; return ( ); }; function formatHours(hours: number): string { const h = Math.floor(hours); const m = Math.round((hours - h) * 60); if (m === 0) return `${h}h`; return `${h}h ${m}min`; }