first commit

This commit is contained in:
Alessio
2026-06-02 04:02:59 +02:00
parent 368f69fdce
commit 8e5f4aafa2
148 changed files with 10590 additions and 110 deletions

View File

@@ -0,0 +1,20 @@
import { getPaymentVisualStyle } from "@/lib/finance/paymentVisualStyle";
import type { CalendarEventType, PaymentSourceType } from "@/types/finance";
export function PaymentBadge({
sourceType,
status,
children,
}: {
sourceType: PaymentSourceType | CalendarEventType | "income";
status?: string;
children: React.ReactNode;
}) {
return (
<span
className={`inline-flex rounded-full border px-2 py-1 text-xs ${getPaymentVisualStyle(sourceType, status).badge}`}
>
{children}
</span>
);
}