bigbuffet-rw/app/soapbox/components/badge.js
2020-05-28 17:56:55 -05:00

13 lines
286 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
const Badge = (props) => (
<span className={'badge badge--' + props.slug}>{props.title}</span>
);
Badge.propTypes = {
title: PropTypes.string.isRequired,
slug: PropTypes.string.isRequired,
};
export default Badge;