mirror of
https://github.com/vercel/next-learn.git
synced 2026-07-08 14:35:16 +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');
|
|
}
|