"use client"; import type { BillPaymentAccountOption, DashboardBill, } from "@/features/dashboard/bills/bills-queries"; import { useBillWidgetController } from "@/features/dashboard/bills/use-bill-widget-controller"; import { BillsWidgetView } from "../bills/bills-widget-view"; type BillWidgetProps = { bills?: DashboardBill[]; paymentAccountOptions?: BillPaymentAccountOption[]; period?: string; }; const EMPTY_OPTIONS: BillPaymentAccountOption[] = []; export function BillWidget({ bills, paymentAccountOptions = EMPTY_OPTIONS, period, }: BillWidgetProps) { const { items, selectedBill, isModalOpen, modalState, isPending, paymentAccountId, setPaymentAccountId, paymentDate, setPaymentDate, openPaymentDialog, closePaymentDialog, confirmPayment, } = useBillWidgetController(bills); return ( ); }