mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
15 lines
270 B
TypeScript
15 lines
270 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}</span>
|
|
);
|
|
|
|
export default PostStatusLabel; |