From 23524cb94314fd50476ccffe654841d980c713d7 Mon Sep 17 00:00:00 2001
From: Sebastien Castiel <sebastien@castiel.me>
Date: Fri, 19 Jan 2024 11:28:25 -0500
Subject: Clean project from marketing content (#50)

* Clean project from marketing content

* Remove some dependencies
---
 .../feedback-button/feedback-button-actions.tsx    | 23 ----------------------
 1 file changed, 23 deletions(-)
 delete mode 100644 src/components/feedback-button/feedback-button-actions.tsx

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

diff --git a/src/components/feedback-button/feedback-button-actions.tsx b/src/components/feedback-button/feedback-button-actions.tsx
deleted file mode 100644
index 00c8748..0000000
--- a/src/components/feedback-button/feedback-button-actions.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-'use server'
-import { formSchema } from '@/components/feedback-button/feedback-button-common'
-import { FeedbackButtonEmail } from '@/components/feedback-button/feedback-button-email'
-import { getResend } from '@/lib/resend'
-import { env } from 'process'
-
-export async function sendFeedback(values: unknown) {
-  'use server'
-  const { email, message } = formSchema.parse(values)
-  const resend = getResend()
-  if (!resend || !env.FEEDBACK_EMAIL_FROM || !env.FEEDBACK_EMAIL_TO) {
-    console.warn(
-      'Resend is not properly configured. Feedback email won’t be sent.',
-    )
-    return
-  }
-  await resend.emails.send({
-    from: env.FEEDBACK_EMAIL_FROM,
-    to: env.FEEDBACK_EMAIL_TO,
-    subject: `Spliit: new feedback from ${email || 'anonymous user'}`,
-    react: <FeedbackButtonEmail email={email} message={message} />,
-  })
-}
-- 
cgit v1.3

