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 (
- Configure the default sender identity for this brand's email campaigns. - Provider (Resend) is configured via environment variables — no credentials stored here. -
-Email Provider
++ Provider (Resend) is configured via environment variables — no credentials stored here. +
+Unsubscribe: link
"} + /> +{error}
+ )} + {success && ( +Preview your segment audience
+- Add filters to see matching customers -
-No customers match these filters.
- ) : ( -{c.name || "(no name)"}
-{c.email}
-+ Add filters to see matching customers +
No customers match these filters.
+{c.name || "(no name)"}
+{c.email}
++
Create segments to organize your contacts and send targeted campaigns to specific audiences.
-