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