text: import React from 'react'
  import PropTypes from 'prop-types'
  
  const PreviousPageButton = ({ css, page, handlePrevClick }) => {
    const prevClass = css || 'button is-black my-0 mx-3'
  
    if (page === 1) {
      return (
        <button className={prevClass} disabled>
          <span className='icon is-small'>
            <i className='material-icons'>keyboard_arrow_left</i>
          </span>
        </button>
      )
    }
  
    return (
      <button className={prevClass} onClick={handlePrevClick}>
        <span className='icon is-small'>
          <i className='material-icons'>keyboard_arrow_left</i>
        </span>
      </button>
    )
  }
  PreviousPageButton.propTypes = {
    css: PropTypes.string,
    page: PropTypes.number.isRequired,
    handlePrevClick: PropTypes.func.isRequired,
  }
  
  export default PreviousPageButton
  