mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
Refactor CSS files and structure. Also refactors some html and React components for a smarter use of CSS classes.
18 lines
363 B
TypeScript
18 lines
363 B
TypeScript
import * as React from 'react';
|
|
import I18n from 'i18n-js';
|
|
|
|
interface Props {
|
|
name: string;
|
|
color: string;
|
|
}
|
|
|
|
const PostStatusLabel = ({
|
|
name,
|
|
color,
|
|
}: Props) => (
|
|
<span className="badge" style={{backgroundColor: color || 'black', color: 'white'}}>
|
|
{(name || I18n.t('common.no_status')).toUpperCase()}
|
|
</span>
|
|
);
|
|
|
|
export default PostStatusLabel; |