// Woodbury Operator — Settings. Registers window.SettingsScreen. (function () { const NS = window.WoodburyPropertiesDesignSystem_7290ca; const { Card, CardHeader, Button, Badge, Input, Select, Switch, SegmentedControl, IconTile, Eyebrow } = NS; const PERMS = ["Dashboard", "Properties", "Tenants", "Screening", "Leases", "Maintenance", "Documents", "Reports", "Users"]; const MATRIX = { "Super Administrator": PERMS, "Site Administrator": ["Dashboard", "Properties", "Tenants", "Screening", "Leases", "Maintenance", "Documents", "Reports"], "Site Operator": ["Dashboard", "Maintenance"], "Leasing Agent": ["Dashboard", "Screening", "Leases", "Tenants", "Documents"], }; const INTEGRATIONS = [ { name: "SMS Gateway (Hubtel)", desc: "Send resident SMS alerts", icon: "message-square", on: true }, { name: "Email (SendGrid)", desc: "Transactional & broadcast email", icon: "mail", on: true }, { name: "Mobile Money", desc: "Disabled — no financial data on platform", icon: "ban", on: false, locked: true }, { name: "Calendar Sync", desc: "Inspections & tours to Google Calendar", icon: "calendar", on: false }, ]; function SettingsScreen() { const [tab, setTab] = React.useState("Organization"); return (
{tab === "Organization" && (
)} {tab === "Sites" && ( window.WBToast("Add a new site")}>Add Site} /> {window.WB_SITES.map((s, i) => (
{s}
Greater Accra
Active
))}
)} {tab === "Roles" && ( Read-only preview} />
Role {PERMS.map((p) => {p.slice(0, 4)})}
{Object.keys(MATRIX).map((role, i) => (
{role} {PERMS.map((p) => ( ))}
))}
)} {tab === "Templates" && (
SMS — Maintenance update