import React from 'react';
import klass from '../../cssClasses'; // Assuming cssClasses.ts is in src/

var Arrow = function Arrow(_ref) {
  var direction = _ref.direction,
    onClickHandler = _ref.onClickHandler,
    enabled = _ref.enabled,
    label = _ref.label;
  var isPrev = direction === 'prev';
  var arrowClassName = isPrev ? klass.ARROW_PREV(!enabled) : klass.ARROW_NEXT(!enabled);
  return /*#__PURE__*/React.createElement("button", {
    type: "button",
    "aria-label": label,
    className: arrowClassName,
    onClick: onClickHandler
  });
};
export default Arrow;