import PropTypes from 'prop-types'; import React, { Component } from 'preact-compat'; import cx from 'classnames'; import Template from '../Template.js'; class ClearRefinements extends Component { render() { const { hasRefinements, cssClasses } = this.props; const data = { hasRefinements }; const rootClassNames = cx(cssClasses.root); const buttonClassNames = cx(cssClasses.button, { [cssClasses.disabledButton]: !hasRefinements, }); return (