This commit is contained in:
2026-05-12 17:35:38 +03:00
parent d9ffcb4b92
commit e3f3e62482
51 changed files with 882 additions and 3413 deletions
+7 -7
View File
@@ -1,24 +1,24 @@
import { CheckIcon, ClockIcon } from '@heroicons/react/24/outline';
import clsx from 'clsx';
import { CheckIcon, ClockIcon } from "@heroicons/react/24/outline";
import clsx from "clsx";
export default function InvoiceStatus({ status }: { status: string }) {
return (
<span
className={clsx(
'inline-flex items-center rounded-full px-2 py-1 text-xs',
"inline-flex items-center rounded-full px-2 py-1 text-xs",
{
'bg-gray-100 text-gray-500': status === 'pending',
'bg-green-500 text-white': status === 'paid',
"bg-gray-100 text-gray-500": status === "pending",
"bg-green-500 text-white": status === "paid",
},
)}
>
{status === 'pending' ? (
{status === "pending" ? (
<>
Pending
<ClockIcon className="ml-1 w-4 text-gray-500" />
</>
) : null}
{status === 'paid' ? (
{status === "paid" ? (
<>
Paid
<CheckIcon className="ml-1 w-4 text-white" />