Manuel Bustillo
25703098d1
All checks were successful
Check usage of free licenses / build-static-assets (pull_request) Successful in 1m47s
Add copyright notice / copyright_notice (pull_request) Successful in 3m4s
Playwright Tests / test (pull_request) Successful in 6m8s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 11m35s
Check usage of free licenses / build-static-assets (push) Successful in 1m34s
Playwright Tests / test (push) Successful in 4m30s
Build Nginx-based docker image / build-static-assets (push) Successful in 17m58s
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
/* Copyright (C) 2024 Manuel Bustillo*/
|
|
|
|
import { PencilIcon, PlusIcon, TrashIcon } from '@heroicons/react/24/outline';
|
|
import Link from 'next/link';
|
|
|
|
export function CreateInvoice() {
|
|
return (
|
|
<Link
|
|
href="/dashboard/guests/create"
|
|
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
|
|
href="/dashboard/guests"
|
|
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>
|
|
</>
|
|
);
|
|
}
|