import React, {PropTypes} from 'react' import classnames from 'classnames' import RequestGroupActionsDropdown from './../containers/RequestGroupActionsDropdown' import SidebarRequestRow from './SidebarRequestRow' const SidebarRequestGroupRow = ({ children, requestGroup, isActive, toggleRequestGroup, addRequestToRequestGroup }) => { let folderIconClass = 'fa-folder'; let expanded = !requestGroup.collapsed; folderIconClass += !expanded ? '' : '-open'; folderIconClass += isActive ? '' : '-o'; const sidebarItemClassNames = classnames( 'sidebar__item', 'sidebar__item--bordered', {'sidebar__item--active': isActive} ); return (