mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-21 09:38:01 +02:00
15 lines
316 B
TypeScript
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;
|