import React from 'react'; import PropTypes from 'prop-types'; function UrlMiddle ({publishInChannel, loggedInChannelName, loggedInChannelShortId}) { if (publishInChannel) { if (loggedInChannelName) { return {loggedInChannelName}:{loggedInChannelShortId} /; } return @channelSelect a channel below /; } return ( xyzThis will be a random id / ); } UrlMiddle.propTypes = { publishInChannel : PropTypes.bool.isRequired, loggedInChannelName : PropTypes.string.isRequired, loggedInChannelShortId: PropTypes.string.isRequired, }; export default UrlMiddle;