You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
soapbox/app/gabsocial/components/badge.js

14 lines
286 B

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;