pass form data to server component

This commit is contained in:
2025-12-10 16:07:33 +01:00
parent 1ec15179b7
commit 432baf4c7c
5 changed files with 61 additions and 31 deletions
+15
View File
@@ -0,0 +1,15 @@
"use server";
import { matchSchema } from "@/schemas";
import { actionClient } from "@/server/safeAction";
export const generateFeuilleDeMatch = actionClient
.schema(matchSchema)
.action(async ({ parsedInput }) => {
try {
console.log("generateFeuilleDeMatch", parsedInput);
} catch (error) {
console.log(error);
throw error;
}
});