mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 19:57:52 +01:00
17 lines
293 B
TypeScript
17 lines
293 B
TypeScript
import * as React from 'react';
|
|
|
|
interface Props {
|
|
name: string;
|
|
color: string;
|
|
}
|
|
|
|
const PostStatusLabel = ({
|
|
name,
|
|
color,
|
|
}: Props) => (
|
|
<span className="badge" style={{backgroundColor: color, color: 'white'}}>
|
|
{name?.toUpperCase()}
|
|
</span>
|
|
);
|
|
|
|
export default PostStatusLabel; |