import { RiCheckboxCircleFill } from "@remixicon/react"; import { EstabelecimentoLogo } from "@/components/lancamentos/shared/estabelecimento-logo"; import MoneyValues from "@/components/shared/money-values"; import { Button } from "@/components/ui/button"; import type { DashboardBill } from "@/lib/dashboard/bills"; import { buildBillStatusLabel, isBillOverdue, } from "@/lib/dashboard/bills-helpers"; import { cn } from "@/lib/utils/ui"; type BillListItemProps = { bill: DashboardBill; onPay: (billId: string) => void; }; export function BillListItem({ bill, onPay }: BillListItemProps) { const statusLabel = buildBillStatusLabel(bill); const overdue = isBillOverdue(bill); return (
  • {bill.name}
    {statusLabel ? ( {statusLabel} ) : null}
  • ); }