diff --git a/src/components/admin/settings/settings-manager.tsx b/src/components/admin/settings/settings-manager.tsx index 3f630d7..51e548b 100644 --- a/src/components/admin/settings/settings-manager.tsx +++ b/src/components/admin/settings/settings-manager.tsx @@ -27,7 +27,7 @@ const KNOWN_SETTINGS: Array<{ key: string; label: string; description: string; - type: 'boolean' | 'number' | 'json'; + type: 'boolean' | 'number' | 'json' | 'string'; defaultValue: unknown; }> = [ { @@ -73,6 +73,22 @@ const KNOWN_SETTINGS: Array<{ type: 'json', defaultValue: [], }, + { + key: 'inquiry_contact_email', + label: 'Inquiry Contact Email', + description: + 'Reply-to email shown in client confirmation emails when a new interest is registered', + type: 'string', + defaultValue: 'sales@portnimara.com', + }, + { + key: 'inquiry_notification_recipients', + label: 'External Notification Recipients', + description: + 'Additional email addresses that receive sales notifications for new interests (JSON array)', + type: 'json', + defaultValue: [], + }, ]; export function SettingsManager() { @@ -187,6 +203,49 @@ export function SettingsManager() { + {/* String Settings */} + {KNOWN_SETTINGS.some((s) => s.type === 'string') && ( + + + Inquiry Settings + Configure inquiry notification behavior + + + {KNOWN_SETTINGS.filter((s) => s.type === 'string').map((setting) => ( +
+
+ +

{setting.description}

+
+
+ + setValues((prev) => ({ + ...prev, + [setting.key]: e.target.value, + })) + } + /> + +
+
+ ))} +
+
+ )} + {/* Numeric Settings */}