Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/components/landing/code.tsx
1449 views
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