Files
astuto/app/javascript/components/shared/PostStatusLabel.tsx

15 lines
270 B
TypeScript
Raw Normal View History

2019-09-12 18:03:19 +02:00
import * as React from 'react';
interface Props {
name: string;
color: string;
}
2019-09-12 18:03:19 +02:00
const PostStatusLabel = ({
name,
color,
}: Props) => (
2019-09-19 16:42:43 +02:00
<span className="badge" style={{backgroundColor: color, color: 'white'}}>{name}</span>
2019-09-12 18:03:19 +02:00
);
export default PostStatusLabel;