2020-04-14 14:37:17 -07:00
|
|
|
import PropTypes from 'prop-types';
|
2022-01-10 14:17:52 -08:00
|
|
|
import React from 'react';
|
2020-03-27 13:59:38 -07:00
|
|
|
|
|
|
|
const Badge = (props) => (
|
|
|
|
<span className={'badge badge--' + props.slug}>{props.title}</span>
|
|
|
|
);
|
|
|
|
|
2020-04-14 14:37:17 -07:00
|
|
|
Badge.propTypes = {
|
|
|
|
title: PropTypes.string.isRequired,
|
|
|
|
slug: PropTypes.string.isRequired,
|
|
|
|
};
|
|
|
|
|
2020-03-27 13:59:38 -07:00
|
|
|
export default Badge;
|