content: import React from 'react';
  import PropTypes from 'prop-types';
  import { Map } from 'immutable';
  import { compose, setPropTypes } from 'recompose';
  import IfiAccountViewer from './IfiAccountViewer';
  
  const enhance = compose(
    setPropTypes({
      identifierType: PropTypes.string.isRequired,
      identifierValue: PropTypes.oneOfType([
        PropTypes.string,
        PropTypes.instanceOf(Map),
      ]).isRequired,
    })
  );
  
  const render = ({ identifierType, identifierValue }) => {
    if (identifierType === 'account') {
      return <IfiAccountViewer identifierValue={identifierValue} />;
    }
    return <span>{identifierValue}</span>;
  };
  
  export default enhance(render);
  