overdueCount > 0 ? "#fee2e2" : "#eff6ff"
),
border: computed(() =>
overdueCount > 0 ? "2px solid #ef4444" : "2px solid #3b82f6"
),
color: computed(() => (overdueCount > 0 ? "#b91c1c" : "#1d4ed8")),
display: "flex",
alignItems: "center",
justifyContent: "center",
fontWeight: "bold",
fontSize: "16px",
}}
>
{computed(() => unpaidBills?.length || 0)}
{shortName} Bills
{computed(() => formatCurrency(totalUnpaid))} due
(overdueCount > 0 ? "inline" : "none")),
}}
>
({computed(() => overdueCount)} overdue)
);
// Summary stats UI
const summaryStatsUI = (
{computed(() => formatCurrency(totalUnpaid))}
Total Unpaid
(overdueCount > 0 ? "#dc2626" : "#059669")),
}}
>
{computed(() => unpaidBills?.length || 0)}
Unpaid Bills
(overdueCount > 0 ? "block" : "none")),
}}
>
{computed(() => overdueCount)}
Overdue
);
// Overdue alert UI
const overdueAlertUI = (
(overdueCount > 0 ? "block" : "none")),
}}
>
*
{computed(() => overdueCount)} Overdue Bill
{computed(() => (overdueCount !== 1 ? "s" : ""))}
Please pay immediately to avoid late fees.
);
// Website link UI (hidden when no URL provided)
const websiteLinkUI = (