Path: blob/master/src/packages/frontend/account/account-preferences-profile.tsx
2209 views
/*1* This file is part of CoCalc: Copyright © 2025 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45import type { IconName } from "@cocalc/frontend/components/icon";67import { useTypedRedux } from "@cocalc/frontend/app-framework";89import { ProfileSettings } from "./profile-settings";10import { AccountSettings } from "./settings/account-settings";1112// Icon constant for account preferences section13export const ACCOUNT_PROFILE_ICON_NAME: IconName = "address-card";1415export const ACCOUNT_PREFERENCES_ICON_NAME: IconName = "cogs";1617export function AccountPreferencesProfile() {18const account_id = useTypedRedux("account", "account_id");19const first_name = useTypedRedux("account", "first_name");20const last_name = useTypedRedux("account", "last_name");21const name = useTypedRedux("account", "name");22const email_address = useTypedRedux("account", "email_address");23const email_address_verified = useTypedRedux(24"account",25"email_address_verified",26);27const passports = useTypedRedux("account", "passports");28const sign_out_error = useTypedRedux("account", "sign_out_error");29const other_settings = useTypedRedux("account", "other_settings");30const is_anonymous = useTypedRedux("account", "is_anonymous");31const created = useTypedRedux("account", "created");32const strategies = useTypedRedux("account", "strategies");33const unlisted = useTypedRedux("account", "unlisted");34const email_enabled = useTypedRedux("customize", "email_enabled");35const verify_emails = useTypedRedux("customize", "verify_emails");3637return (38<>39<AccountSettings40account_id={account_id}41first_name={first_name}42last_name={last_name}43name={name}44email_address={email_address}45email_address_verified={email_address_verified}46passports={passports}47sign_out_error={sign_out_error}48other_settings={other_settings}49is_anonymous={is_anonymous}50email_enabled={email_enabled}51verify_emails={verify_emails}52created={created}53strategies={strategies}54unlisted={unlisted}55/>56<ProfileSettings email_address={email_address} />57</>58);59}606162