mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 00:53:41 +08:00
22 lines
494 B
JavaScript
22 lines
494 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import styles from './FlagLabel.css';
|
|
import Label from './Label';
|
|
import cn from 'classnames';
|
|
|
|
const FlagLabel = ({ iconName, children, className }) => {
|
|
return (
|
|
<Label iconName={iconName} className={cn(className, styles.flag)}>
|
|
{children}
|
|
</Label>
|
|
);
|
|
};
|
|
|
|
FlagLabel.propTypes = {
|
|
className: PropTypes.string,
|
|
children: PropTypes.node.isRequired,
|
|
iconName: PropTypes.string,
|
|
};
|
|
|
|
export default FlagLabel;
|