1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-15 09:04:04 +02:00
joplin/packages/app-desktop/gui/Sidebar/listItemComponents/NoteCount.tsx

15 lines
316 B
TypeScript

import * as React from 'react';
import { StyledNoteCount } from '../styles';
interface Props {
count: number;
}
const NoteCount: React.FC<Props> = props => {
const count = props.count;
return count ? <StyledNoteCount className="note-count-label">{count}</StyledNoteCount> : null;
};
export default NoteCount;