Path: blob/master/src/packages/frontend/account/account-preferences.tsx
6046 views
/*1* This file is part of CoCalc: Copyright © 2025 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45import { useTypedRedux } from "@cocalc/frontend/app-framework";67import { AccountSettings } from "./settings/account-settings";8import TableError from "./table-error";910// Legacy component for backward compatibility - now just renders account settings11export const AccountPreferences: React.FC = () => {12const account_id = useTypedRedux("account", "account_id");13const first_name = useTypedRedux("account", "first_name");14const last_name = useTypedRedux("account", "last_name");15const name = useTypedRedux("account", "name");16const email_address = useTypedRedux("account", "email_address");17const email_address_verified = useTypedRedux(18"account",19"email_address_verified",20);21const passports = useTypedRedux("account", "passports");22const sign_out_error = useTypedRedux("account", "sign_out_error");23const other_settings = useTypedRedux("account", "other_settings");24const is_anonymous = useTypedRedux("account", "is_anonymous");25const created = useTypedRedux("account", "created");26const strategies = useTypedRedux("account", "strategies");27const unlisted = useTypedRedux("account", "unlisted");28const email_enabled = useTypedRedux("customize", "email_enabled");29const verify_emails = useTypedRedux("customize", "verify_emails");3031return (32<div>33<TableError />34<AccountSettings35account_id={account_id}36first_name={first_name}37last_name={last_name}38name={name}39email_address={email_address}40email_address_verified={email_address_verified}41passports={passports}42sign_out_error={sign_out_error}43other_settings={other_settings}44is_anonymous={is_anonymous}45email_enabled={email_enabled}46verify_emails={verify_emails}47created={created}48strategies={strategies}49unlisted={unlisted}50/>51</div>52);53};545556