setDisplayName(event.target.value)} />}
/>
}
/>
);
case "appearance":
return (
Appearance
onUpdatePreferences({ theme: event.target.value as PreferencesState["theme"] })
}
>
}
/>
onUpdatePreferences({ compactSidebar: next })}
/>
}
/>
);
case "notifications":
return (
Notifications
onUpdatePreferences({ emailNotifications: next })}
/>
}
/>
onUpdatePreferences({ productUpdates: next })}
/>
}
/>
);
case "account":
return (
Account
{user.role}}
/>
void onLogout()}>
Sign out
}
/>
Unavailable}
/>
);
case "preferences":
default:
return (
<>
Preferences
onUpdatePreferences({ smartText: next })}
/>
}
/>
onUpdatePreferences({ showLineNumbers: next })}
/>
}
/>
>
);
}
}
return (
key === currentSection)?.[1] ?? "Preferences"}
description="Manage settings that affect your personal Ledger experience on this device."
/>
{renderSection()}