Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/account/account-preferences-other.tsx
2209 views
1
/*
2
* This file is part of CoCalc: Copyright © 2025 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { useTypedRedux } from "@cocalc/frontend/app-framework";
7
import { OtherSettings, OTHER_ICON_NAME } from "./other-settings";
8
9
// Re-export the icon constant for account preferences section
10
export { OTHER_ICON_NAME };
11
12
export function AccountPreferencesOther() {
13
const other_settings = useTypedRedux("account", "other_settings");
14
const stripe_customer = useTypedRedux("account", "stripe_customer");
15
const kucalc = useTypedRedux("customize", "kucalc");
16
17
return (
18
<OtherSettings
19
other_settings={other_settings}
20
is_stripe_customer={
21
!!stripe_customer?.getIn(["subscriptions", "total_count"])
22
}
23
kucalc={kucalc}
24
mode="other"
25
/>
26
);
27
}
28
29