1 import PropTypes from 'prop-types';
2 import React from 'react';
4 import { getAvatarUrl, getUserName } from '../../helpers/User';
5 import i18n from '../../i18n';
7 const SeedRolledBy = ({ round }) => round.rolled_by_user ?
10 title={i18n.t('rounds.rolledBy', { name: getUserName(round.rolled_by_user) })}
12 <img alt={getUserName(round.rolled_by_user)} src={getAvatarUrl(round.rolled_by_user)} />
16 SeedRolledBy.propTypes = {
17 round: PropTypes.shape({
18 rolled_by_user: PropTypes.shape({
23 export default SeedRolledBy;