bigbuffet-rw/app/soapbox/components/badge.tsx
2022-02-27 00:13:35 +00:00

13 lines
291 B
TypeScript

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