import React, {Component, PropTypes} from 'react'
import RequestActionsDropdown from './../containers/RequestActionsDropdown'
import MethodTag from './MethodTag'
class SidebarRequestRow extends Component {
render () {
const {request, requestGroup, isActive, activateRequest} = this.props;
return (
{request ? (
) : (
)}
{request ? (
) : null}
);
}
}
SidebarRequestRow.propTypes = {
// Functions
activateRequest: PropTypes.func.isRequired,
// Other
isActive: PropTypes.bool.isRequired,
// Optional
requestGroup: PropTypes.object,
request: PropTypes.object
};
export default SidebarRequestRow;