mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 19:57:52 +01:00
* It is now possible to follow a post in order to receive updates about it * Notifications are now sent when updates are published * Post status changes are now tracked * Update sidebar now shows the post status history * Mark a comment as a post update using the comment form * ... more ...
17 lines
320 B
TypeScript
17 lines
320 B
TypeScript
import * as React from 'react';
|
|
|
|
interface Props {
|
|
name: string;
|
|
color: string;
|
|
}
|
|
|
|
const PostStatusLabel = ({
|
|
name,
|
|
color,
|
|
}: Props) => (
|
|
<span className="badge" style={{backgroundColor: color || 'black', color: 'white'}}>
|
|
{(name || 'no status').toUpperCase()}
|
|
</span>
|
|
);
|
|
|
|
export default PostStatusLabel; |