2018-01-19 17:24:21 -08:00
|
|
|
import React from 'react';
|
|
|
|
|
2018-02-02 14:48:04 -08:00
|
|
|
function NavBarChannelDropdown ({ channelName, handleSelection, defaultSelection, VIEW, LOGOUT }) {
|
2018-01-19 17:24:21 -08:00
|
|
|
return (
|
2018-03-07 20:18:17 -08:00
|
|
|
<select type='text' id='nav-bar-channel-select' className='select select--arrow link--nav' onChange={handleSelection} value={defaultSelection}>
|
|
|
|
<option id='nav-bar-channel-select-channel-option'>{channelName}</option>
|
2018-01-19 17:24:21 -08:00
|
|
|
<option value={VIEW}>View</option>
|
|
|
|
<option value={LOGOUT}>Logout</option>
|
|
|
|
</select>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2018-02-02 14:48:04 -08:00
|
|
|
export default NavBarChannelDropdown;
|