import e from"react";import r from"../../prop-types/index.js";import t from"../../classnames/index.js";import{mapToCssModules as n}from"./utils.js";var o=function(r){var o=r.direction,s=r.onClickHandler,a=r.cssModule,i=r.directionText,c=r.className,l=n(t(c,"carousel-control-"+o),a),m=n(t("carousel-control-"+o+"-icon"),a),d=n(t("sr-only"),a);return e.createElement("a",{className:l,style:{cursor:"pointer"},role:"button",tabIndex:"0",onClick:function(e){e.preventDefault(),s()}},e.createElement("span",{className:m,"aria-hidden":"true"}),e.createElement("span",{className:d},i||o))};o.propTypes={direction:r.oneOf(["prev","next"]).isRequired,onClickHandler:r.func.isRequired,cssModule:r.object,directionText:r.string,className:r.string};export default o;
//# sourceMappingURL=CarouselControl.js.map
