mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Refactor CSS files and structure. Also refactors some html and React components for a smarter use of CSS classes.
14 lines
288 B
TypeScript
14 lines
288 B
TypeScript
import * as React from 'react';
|
|
import I18n from 'i18n-js';
|
|
|
|
interface Props {
|
|
number: number;
|
|
}
|
|
|
|
const CommentsNumber = ({ number }: Props) => (
|
|
<span className="badge badgeLight">
|
|
{I18n.t('common.comments_number', { count: number })}
|
|
</span>
|
|
);
|
|
|
|
export default CommentsNumber; |