import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import GroupsIcon from 'mastodon/../material-icons/400-24px/group.svg?react'; import PersonIcon from 'mastodon/../material-icons/400-24px/person.svg?react'; import SmartToyIcon from 'mastodon/../material-icons/400-24px/smart_toy.svg?react'; export const Badge = ({ icon, label, domain }) => (
{icon} {label} {domain && {domain}}
); Badge.propTypes = { icon: PropTypes.node, label: PropTypes.node, domain: PropTypes.node, }; Badge.defaultProps = { icon: , }; export const GroupBadge = () => ( } label={} /> ); export const AutomatedBadge = () => ( } label={} /> );