import type { ReactNode } from "react"; import { WidgetEmptyState } from "@/components/shared/widget-empty-state"; import { PaymentBreakdownListItem, type PaymentBreakdownListItemData, } from "./payment-breakdown-list-item"; export type { PaymentBreakdownListItemData } from "./payment-breakdown-list-item"; type PaymentBreakdownListProps = { items: PaymentBreakdownListItemData[]; emptyIcon: ReactNode; emptyTitle: string; emptyDescription: string; }; export function PaymentBreakdownList({ items, emptyIcon, emptyTitle, emptyDescription, }: PaymentBreakdownListProps) { if (items.length === 0) { return ( ); } return (
); }