mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 09:42:04 +08:00
22 lines
492 B
JavaScript
22 lines
492 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;
|