bigbuffet-rw/app/soapbox/components/badge.js
Alex Gleason 1f549ebe1a Revert "Merge branch 'typescript' into 'develop'"
This reverts merge request !859
2022-02-26 23:55:34 +00:00

13 lines
286 B
JavaScript

import PropTypes from 'prop-types';
import React from 'react';
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;