// Woodbury Operator — Profile / account settings. Registers window.ProfileScreen. (function () { const NS = window.WoodburyPropertiesDesignSystem_7290ca; const { Card, CardHeader, Button, Badge, Avatar, Input, Select, Checkbox, Switch, Eyebrow, Modal } = NS; function ProfileScreen({ role, onBack }) { const [avatar, setAvatar] = React.useState("../../assets/images/avatar-1.jpg"); const [twoFA, setTwoFA] = React.useState(true); const [setup, setSetup] = React.useState(false); const [code, setCode] = React.useState(""); const fileRef = React.useRef(null); const toggle2FA = (v) => { if (v) { setSetup(true); } else { setTwoFA(false); window.WBToast("Two-factor authentication disabled", "danger"); } }; const onFile = (e) => { const f = e.target.files && e.target.files[0]; if (!f) return; const url = URL.createObjectURL(f); setAvatar(url); window.WBToast("Profile photo updated"); }; return (
Back} /> {/* Identity card with photo upload */}

Kwame Ansah

{role || "Super Administrator"}

kwame.ansah@woodbury.com

{/* Personal details */}
{/* Preferences + security */}
Notifications
Security
Two-Factor Authentication {twoFA ? On : Off}

Optional. Require a 6-digit code from an authenticator app at sign-in.

{twoFA && }
{/* 2FA setup modal */} setSetup(false)} icon="shield-check" title="Set up Two-Factor Authentication" subtitle="Scan the code with your authenticator app, then verify." width={460} footer={}>
{Array.from({ length: 121 }).map((_, i) => { const r = ((i * 73 + 17) % 100) < 46 || i % 12 === 0; return ; })}
Or enter this key manually
WBRY-4F8K-2ACR-91GH
Enter the 6-digit code
); } window.ProfileScreen = ProfileScreen; })();