feat(report page) - export button added

This commit is contained in:
2025-10-24 23:39:39 +05:30
parent 54596be39f
commit 3af71cc5b8
11 changed files with 373 additions and 78 deletions

View File

@@ -23,6 +23,7 @@ export default function PatientsBalancesList({
onNext,
hasPrev,
hasNext,
headerRight, // optional UI node to render in header
}: {
rows: GenericRow[];
reportType?: string | null;
@@ -37,6 +38,7 @@ export default function PatientsBalancesList({
onNext: () => void;
hasPrev: boolean;
hasNext: boolean;
headerRight?: React.ReactNode;
}) {
const fmt = (v: number) =>
new Intl.NumberFormat("en-US", {
@@ -66,6 +68,9 @@ export default function PatientsBalancesList({
<h3 className="font-medium text-gray-900">
{reportTypeTitle(reportType)}
</h3>
{/* headerRight rendered here (if provided) */}
<div>{headerRight ?? null}</div>
</div>
<div className="divide-y min-h-[120px]">