@@ -10,38 +10,49 @@ import Info from "./info";
10
10
11
11
interface Props {
12
12
image : StaticImageData ;
13
+ alt ?: string ;
14
+ children ?: React . ReactNode ;
13
15
}
14
16
15
17
export default function Collaboration ( props : Props ) {
16
- const { image } = props ;
18
+ const {
19
+ image,
20
+ alt = "Editing a document in two browser windows" ,
21
+ children,
22
+ } = props ;
17
23
return (
18
24
< Info
19
25
anchor = "a-realtimesync"
20
26
icon = "users"
21
27
title = "Collaborative editing without limits"
22
28
image = { image }
23
- alt = "Editing a document in two browser windows"
29
+ alt = { alt }
24
30
>
25
- < Paragraph >
26
- Privately share your project with{ " " }
27
- < A href = "https://doc.cocalc.com/project-settings.html#about-collaborators" >
28
- < strong > an unlimited number of collaborators</ strong >
29
- </ A >
30
- . Simultaneous modifications of your document are{ " " }
31
- < strong > synchronized in real time</ strong > . You see the cursors of
32
- others while they edit the document and also see the presence of
33
- watching collaborators.
34
- </ Paragraph >
31
+ { children ?? (
32
+ < >
33
+ < Paragraph >
34
+ Privately share your project with{ " " }
35
+ < A href = "https://doc.cocalc.com/project-settings.html#about-collaborators" >
36
+ < strong > an unlimited number of collaborators</ strong >
37
+ </ A >
38
+ . Simultaneous modifications of your document are{ " " }
39
+ < strong > synchronized in real time</ strong > . You see the cursors of
40
+ others while they edit the document and also see the presence of
41
+ watching collaborators.
42
+ </ Paragraph >
35
43
36
- < Paragraph >
37
- Additionally, any compilation status and output is synchronized between
38
- everyone, because everything runs online and is fully managed by CoCalc.
39
- </ Paragraph >
44
+ < Paragraph >
45
+ Additionally, any compilation status and output is synchronized
46
+ between everyone, because everything runs online and is fully
47
+ managed by CoCalc.
48
+ </ Paragraph >
40
49
41
- < Paragraph >
42
- This ensures that everyone involved experiences editing the document in
43
- exactly the same way.
44
- </ Paragraph >
50
+ < Paragraph >
51
+ This ensures that everyone involved experiences editing the document
52
+ in exactly the same way.
53
+ </ Paragraph >
54
+ </ >
55
+ ) }
45
56
</ Info >
46
57
) ;
47
58
}
0 commit comments