Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/account/account-preferences-ai.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 } from "./other-settings";
8
9
export function AccountPreferencesAI() {
10
const other_settings = useTypedRedux("account", "other_settings");
11
const stripe_customer = useTypedRedux("account", "stripe_customer");
12
const kucalc = useTypedRedux("customize", "kucalc");
13
14
return (
15
<OtherSettings
16
other_settings={other_settings}
17
is_stripe_customer={
18
!!stripe_customer?.getIn(["subscriptions", "total_count"])
19
}
20
kucalc={kucalc}
21
mode="ai"
22
/>
23
);
24
}
25
26