"use strict";const i=require("classnames"),e=require("react"),c=require("react-i18next"),r=require("./ArrowIcon-c2b12c44.js"),m=require("./index-929f0913.js"),p="pagination _pagination_706ed",E={pagination:p},u=({link:n,children:a,className:t})=>e.createElement(m.Link,{className:i(t,"paginationLink"),to:n},a),f=({callBack:n,children:a,className:t})=>e.createElement("a",{href:"#",className:i(t,"paginationLink","link",n?"":"disabled"),onClick:s=>{s.preventDefault(),n&&n()}},a),l=({linkOrCallback:n,children:a,className:t})=>n===!1?null:e.createElement(e.Fragment,null,typeof n=="string"&&e.createElement(u,{link:n,className:t},a),typeof n!="string"&&e.createElement(f,{callBack:n,className:t},a));class d extends e.Component{render(){return e.createElement("div",{className:i(E.pagination,"pagination")},e.createElement(l,{linkOrCallback:this.props.prev,className:"link-prev"},e.createElement(r.ArrowIcon,{className:i(r.ArrowIconStyles.left,"arrowSize")}),e.createElement(c.Trans,{i18nKey:"Pagination.prev"},"Prev")),e.createElement(l,{linkOrCallback:this.props.next,className:"link-next"},e.createElement(c.Trans,{i18nKey:"Pagination.next"},"Next"),e.createElement(r.ArrowIcon,{className:i(r.ArrowIconStyles.right,"arrowSize")})))}}const k=({children:n,isExternal:a=!1,to:t,isDisabled:s,...o})=>{if(s)return e.createElement("div",null,n);if(a){const g=t.toString();return e.createElement("a",{href:g,...o},n)}return e.createElement(m.Link,{to:t,...o},n)};exports.ExtendedLink=k;exports.Pagination=d;
