2018-10-24 10:45:06 -04:00
|
|
|
import PropTypes from "prop-types";
|
2018-10-18 14:46:01 +01:00
|
|
|
import React from 'react';
|
|
|
|
import {CardTitle} from 'reactstrap';
|
|
|
|
import Blockies from 'react-blockies';
|
|
|
|
|
|
|
|
const CardTitleIdenticon = ({id, children}) => (
|
2018-10-24 10:45:06 -04:00
|
|
|
<CardTitle>
|
|
|
|
<Blockies seed={id} className="rounded"/><span className="ml-2 align-top text-truncate">{children}</span>
|
|
|
|
</CardTitle>
|
|
|
|
);
|
2018-10-18 14:46:01 +01:00
|
|
|
|
2018-10-24 10:45:06 -04:00
|
|
|
CardTitleIdenticon.propTypes = {
|
|
|
|
id: PropTypes.string,
|
2018-10-24 10:56:36 -04:00
|
|
|
children: PropTypes.oneOfType([
|
|
|
|
PropTypes.object,
|
2018-10-25 14:34:54 -04:00
|
|
|
PropTypes.array,
|
|
|
|
PropTypes.string
|
2018-10-24 10:56:36 -04:00
|
|
|
])
|
2018-10-24 10:45:06 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
export default CardTitleIdenticon;
|