mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 12:36:57 +00:00
pass form data to server component
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user