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/misc/badge.tsx
Views: 687
1
import { CSSProperties } from "react";
2
import { Badge as BadgeAntd } from "antd";
3
4
interface Props {
5
count?: number;
6
style?: CSSProperties;
7
}
8
9
export default function Badge({ count, style }: Props) {
10
return (
11
<BadgeAntd
12
overflowCount={1e8}
13
count={count ?? 0}
14
style={{
15
backgroundColor: "#e6f7ff",
16
color: "black",
17
minWidth: "30px",
18
...style,
19
}}
20
/>
21
);
22
}
23
24