import React from 'react'; import PropTypes from 'prop-types'; import { withTranslation } from 'react-i18next'; import { UncontrolledTooltip } from 'reactstrap'; const ThreeStrandedButton = (props) => { const { t, isBtnDisabled, editorMode } = props; function threeStrandedButtonClickedHandler(viewType) { if (isBtnDisabled) { return; } if (props.onThreeStrandedButtonClicked != null) { props.onThreeStrandedButtonClicked(viewType); } } return ( <>
{isBtnDisabled && ( {t('Not available for guest')} )} ); }; ThreeStrandedButton.propTypes = { t: PropTypes.func.isRequired, // i18next onThreeStrandedButtonClicked: PropTypes.func, isBtnDisabled: PropTypes.bool, editorMode: PropTypes.string, }; ThreeStrandedButton.defaultProps = { isBtnDisabled: false, }; export default withTranslation()(ThreeStrandedButton);