2024-10-27 21:11:45 +00:00
|
|
|
/* Copyright (C) 2024 Manuel Bustillo*/
|
|
|
|
|
2024-08-11 12:03:11 +02:00
|
|
|
import { PencilIcon, PlusIcon, TrashIcon } from '@heroicons/react/24/outline';
|
|
|
|
import Link from 'next/link';
|
|
|
|
|
|
|
|
export function CreateInvoice() {
|
|
|
|
return (
|
|
|
|
<Link
|
2024-08-11 12:34:16 +02:00
|
|
|
href="/dashboard/guests/create"
|
2024-08-11 12:03:11 +02:00
|
|
|
className="flex h-10 items-center rounded-lg bg-blue-600 px-4 text-sm font-medium text-white transition-colors hover:bg-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600"
|
|
|
|
>
|
|
|
|
<span className="hidden md:block">Create Invoice</span>{' '}
|
|
|
|
<PlusIcon className="h-5 md:ml-4" />
|
|
|
|
</Link>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export function UpdateInvoice({ id }: { id: string }) {
|
|
|
|
return (
|
|
|
|
<Link
|
2024-08-11 12:34:16 +02:00
|
|
|
href="/dashboard/guests"
|
2024-08-11 12:03:11 +02:00
|
|
|
className="rounded-md border p-2 hover:bg-gray-100"
|
|
|
|
>
|
|
|
|
<PencilIcon className="w-5" />
|
|
|
|
</Link>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export function DeleteInvoice({ id }: { id: string }) {
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<button className="rounded-md border p-2 hover:bg-gray-100">
|
|
|
|
<span className="sr-only">Delete</span>
|
|
|
|
<TrashIcon className="w-5" />
|
|
|
|
</button>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|