CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/compute/advanced.tsx
Views: 687
1
import { Checkbox, Tooltip } from "antd";
2
3
interface Props {
4
advanced: boolean;
5
setAdvanced: (advanced: boolean) => void;
6
title;
7
style?;
8
}
9
10
export default function Advanced({
11
advanced,
12
setAdvanced,
13
title,
14
style,
15
}: Props) {
16
return (
17
<Tooltip title={title}>
18
<Checkbox
19
checked={advanced}
20
onChange={(e) => setAdvanced(e.target.checked)}
21
style={style}
22
>
23
Advanced
24
</Checkbox>
25
</Tooltip>
26
);
27
}
28
29