import React from 'react' import PropTypes from 'prop-types' import { CX, BREAKPOINT_SMALL, } from '../constants' import Responsive from '../features/ui/util/responsive_component' import Button from './button' import Text from './text' class StatusActionBarItem extends React.PureComponent { render() { const { title, onClick, icon, active, disabled, buttonRef, altTitle } = this.props const btnClasses = CX({ jcCenter: 1, aiCenter: 1, px10: 1, bgSubtle_onHover: !disabled, }) const iconClasses = CX({ d: 1, inheritFill: 1, mr10: !!title, }) const color = active ? 'brand' : 'secondary' const weight = active ? 'bold' : 'medium' return (
) } } StatusActionBarItem.propTypes = { title: PropTypes.string.isRequired, altTitle: PropTypes.string, onClick: PropTypes.func.isRequired, icon: PropTypes.string.isRequired, active: PropTypes.bool, disabled: PropTypes.bool, buttonRef: PropTypes.oneOf([ PropTypes.func, PropTypes.node, ]), } export default StatusActionBarItem