8 lines
200 B
TypeScript
8 lines
200 B
TypeScript
import "./UnreadCount.css";
|
|
|
|
const UnreadCount = ({ unread }: { unread: number }) => {
|
|
return <span className={`pill ${unread > 0 ? "unread" : ""}`}>{unread}</span>;
|
|
};
|
|
|
|
export default UnreadCount;
|