2018-01-20 02:24:21 +01:00
|
|
|
import React from 'react';
|
|
|
|
|
2018-01-25 00:42:47 +01:00
|
|
|
function NavBarChannelOptionsDropdown ({ channelName, handleSelection, VIEW, LOGOUT }) {
|
2018-01-20 02:24:21 +01:00
|
|
|
return (
|
|
|
|
<select type="text" id="nav-bar-channel-select" className="select select--arrow link--nav" onChange={handleSelection}>
|
|
|
|
<option id="nav-bar-channel-select-channel-option">{channelName}</option>
|
|
|
|
<option value={VIEW}>View</option>
|
|
|
|
<option value={LOGOUT}>Logout</option>
|
|
|
|
</select>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2018-01-25 00:42:47 +01:00
|
|
|
export default NavBarChannelOptionsDropdown;
|