import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import { useTranslation } from 'react-i18next' import Icon from '../../../shared/components/icon' function HistoryToggleButton({ historyIsOpen, onClick }) { const { t } = useTranslation() const classes = classNames('btn', 'btn-full-height', { active: historyIsOpen }) return ( // eslint-disable-next-line jsx-a11y/anchor-is-valid

{t('history')}

) } HistoryToggleButton.propTypes = { historyIsOpen: PropTypes.bool, onClick: PropTypes.func.isRequired } export default HistoryToggleButton