Files
astuto/app/javascript/components/shared/PostStatusLabel.tsx
2022-04-07 18:58:18 +02:00

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;