diff --git a/src/components/admin/CommunicationSettingsForm.tsx b/src/components/admin/CommunicationSettingsForm.tsx index d4b205e..1bab26c 100644 --- a/src/components/admin/CommunicationSettingsForm.tsx +++ b/src/components/admin/CommunicationSettingsForm.tsx @@ -4,8 +4,32 @@ import { useState } from "react"; import { useRouter } from "next/navigation"; import type { CommunicationSettings } from "@/actions/communications/settings"; import { upsertCommunicationSettings } from "@/actions/communications/settings"; +import { AdminButton } from "@/components/admin/design-system"; +import { AdminInput, AdminTextInput, AdminTextarea } from "@/components/admin/design-system/AdminFormElements"; -const BRAND_ID = process.env.NEXT_PUBLIC_TUXEDO_BRAND_ID ?? "64294306-5f42-463d-a5e8-2ad6c81a96de"; +// Mail icon for the header +const MailIcon = ({ className }: { className?: string }) => ( + + + + +); + +// Check icon for success +const CheckIcon = () => ( + + + +); + +// Warning icon for provider notice +const WarningIcon = () => ( + + + + + +); export default function CommunicationSettingsForm({ settings, @@ -46,76 +70,99 @@ export default function CommunicationSettingsForm({ return (
-
-

Sender Settings

-

- Configure the default sender identity for this brand's email campaigns. - Provider (Resend) is configured via environment variables — no credentials stored here. -

-
- - {error && ( -
{error}
- )} - {success && ( -
- Settings saved successfully. -
- )} - -
-
- - setSenderEmail(e.target.value)} - className="w-full border border-zinc-600 rounded-lg px-3 py-2 text-sm" - placeholder="orders@tuxedocorn.com" - /> + {/* Header */} +
+
+
- - setSenderName(e.target.value)} - className="w-full border border-zinc-600 rounded-lg px-3 py-2 text-sm" - placeholder="Route Commerce" - /> -
-
- - setReplyTo(e.target.value)} - className="w-full border border-zinc-600 rounded-lg px-3 py-2 text-sm" - placeholder="support@tuxedocorn.com" - /> -
-
- -