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