import React from 'react'; import { connect } from 'react-redux'; import MetadataItem from './MetadataItem'; export default connect(state => ({ metadata: state.getIn([ 'sessions', 'current', 'metadata' ]), }))(function Metadata ({ metadata }) { const metaLenth = Object.keys(metadata).length; if (metaLenth === 0) { return ( (Check how to use Metadata if you haven’t yet done so.) ) } return (