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/next/components/landing/code.tsx
Views: 687
1
import { ReactNode, CSSProperties } from "react";
2
import { Typography } from "antd";
3
const { Text } = Typography;
4
5
interface Props {
6
children: ReactNode;
7
style?: CSSProperties;
8
}
9
10
export default function Code({ children, style }: Props) {
11
return (
12
<Text code style={style}>
13
{children}
14
</Text>
15
);
16
}
17
18