mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-11 09:51:47 +00:00
12 lines
282 B
TypeScript
12 lines
282 B
TypeScript
'use server';
|
|
|
|
export async function deleteInvoice(id: number) {
|
|
// TO DO: Add delete invoice logic
|
|
console.log('Delete invoice', id);
|
|
}
|
|
|
|
export async function addOrUpdateInvoice(formData: FormData) {
|
|
// TO DO: Add create/update invoice logic
|
|
console.log('Edit Invoice');
|
|
}
|