3a5c62cb70
This reverts merge request !1056
13 lines
291 B
TypeScript
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;
|