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

15 lines
316 B
TypeScript
Raw Normal View History

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;