@@ -3,33 +3,39 @@ import { Col, Layout } from "antd";
3
3
import Footer from "components/landing/footer" ;
4
4
import Head from "components/landing/head" ;
5
5
import Header from "components/landing/header" ;
6
- import A from "components/misc/A" ;
7
- import ChatGPTHelp from "components/openai/chatgpt-help" ;
8
- import { Customize } from "lib/customize" ;
9
- import withCustomize from "lib/with-customize" ;
10
- import { VideoItem } from "components/videos" ;
11
6
import IndexList , { DataSource } from "components/landing/index-list" ;
7
+ import SocialMediaIconList from "components/landing/social-media-icon-list" ;
12
8
import { Title } from "components/misc" ;
9
+ import A from "components/misc/A" ;
13
10
import SanitizedMarkdown from "components/misc/sanitized-markdown" ;
14
- import SocialMediaIconList from "components/landing/social-media-icon-list" ;
11
+ import ChatGPTHelp from "components/openai/chatgpt-help" ;
12
+ import { VideoItem } from "components/videos" ;
13
+ import { Customize , type CustomizeType } from "lib/customize" ;
14
+ import withCustomize from "lib/with-customize" ;
15
15
16
16
const dataSource = [
17
17
{
18
18
link : "/support/new" ,
19
19
title : "Create a New Support Ticket" ,
20
20
logo : "medkit" ,
21
21
hide : ( customize ) => ! customize . zendesk ,
22
- description : (
22
+ description : ( { supportVideoCall } : CustomizeType ) => (
23
23
< >
24
24
If you are having any trouble or just have a question,{ " " }
25
25
< A href = "/support/new" >
26
26
< b > create a support ticket</ b > { " " }
27
27
</ A >
28
- or{ " " }
29
- < A href = "https://calendly.com/cocalc" >
30
- < b > book a video chat</ b >
31
- </ A >
32
- . You do NOT have to be a paying customer to open a ticket.
28
+ { supportVideoCall ? (
29
+ < >
30
+ or{ " " }
31
+ < A href = { supportVideoCall } >
32
+ < b > book a video chat</ b >
33
+ </ A >
34
+ </ >
35
+ ) : (
36
+ ""
37
+ ) }
38
+ . You do NOT have to be a paying customer to contact us!
33
39
< VideoItem
34
40
width = { 800 }
35
41
style = { { margin : "15px 0" } }
@@ -56,7 +62,7 @@ const dataSource = [
56
62
{
57
63
link : "https://calendly.com/cocalc" ,
58
64
title : "Book a Video Chat" ,
59
- logo : "video" ,
65
+ logo : "video-camera " ,
60
66
description : (
61
67
< >
62
68
Book a{ " " }
@@ -130,7 +136,7 @@ const dataSource = [
130
136
</ >
131
137
) ,
132
138
} ,
133
- ] as DataSource ;
139
+ ] as const satisfies DataSource ;
134
140
135
141
export default function Preferences ( { customize } ) {
136
142
const { support, onCoCalcCom } = customize ;
0 commit comments