From 323b0ea1282abc0945cef1ebf8185bdf9a156f5d Mon Sep 17 00:00:00 2001
From: Sebastien Castiel <sebastien@castiel.me>
Date: Tue, 9 Jan 2024 15:32:19 -0500
Subject: Feedback button

---
 src/components/feedback-button/feedback-button-common.tsx | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 src/components/feedback-button/feedback-button-common.tsx

(limited to 'src/components/feedback-button/feedback-button-common.tsx')

diff --git a/src/components/feedback-button/feedback-button-common.tsx b/src/components/feedback-button/feedback-button-common.tsx
new file mode 100644
index 0000000..04567ef
--- /dev/null
+++ b/src/components/feedback-button/feedback-button-common.tsx
@@ -0,0 +1,9 @@
+import { z } from 'zod'
+
+export const formSchema = z.object({
+  email: z.union([
+    z.string().email('Please enter a valid email address.'),
+    z.string().max(0),
+  ]),
+  message: z.string().min(10, 'Please enter at least 10 characters.').max(5000),
+})
-- 
cgit v1.3

