import React from 'react' const docType = doc => { const suffix = doc.name.split('.') return suffix.slice(-1)[0] } export default ({ status }) => { return (
{status && status.profileImg &&
{['jpg', 'gif', 'png'].includes(docType(status.profileImg)) && ipfs} {docType(status.profileImg) === 'pdf' &&