aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/feedback-button/feedback-button-common.tsx
diff options
context:
space:
mode:
authorSebastien Castiel <sebastien@castiel.me>2024-01-09 15:32:19 -0500
committerSebastien Castiel <sebastien@castiel.me>2024-01-09 15:32:19 -0500
commit323b0ea1282abc0945cef1ebf8185bdf9a156f5d (patch)
tree5526370fed1acbcb3cc2d43b9b1d0a6264783b47 /src/components/feedback-button/feedback-button-common.tsx
parent5ce96aef30b87a1aeecfac67e99621b06ab64b93 (diff)
Feedback button
Diffstat (limited to 'src/components/feedback-button/feedback-button-common.tsx')
-rw-r--r--src/components/feedback-button/feedback-button-common.tsx9
1 files changed, 9 insertions, 0 deletions
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),
+})