+
+ {currentPage != 1 ? (
- {e}
-
- ) : e == "..." ? (
-
- {e}
-
- ) : (
- {
spinnerState(),
getSearchPageResults(
- i + 1,
+ currentPage - 1,
orderBy,
fieldSort
);
}}
>
- {e}
+ {t("common:previous-link-button")}
- )
- )}
+ ) : (
+
+ {t("common:previous-link-button")}
+
+ )}
+
+
+ {paginationArray.map((e, i) =>
+ currentPage == i + 1 ? (
+
+ {e}
+
+ ) : e == "..." ? (
+
+ {e}
+
+ ) : (
+ {
+ spinnerState(),
+ getSearchPageResults(
+ i + 1,
+ orderBy,
+ fieldSort
+ );
+ }}
+ >
+ {e}
+
+ )
+ )}
+
+
+ {currentPage != pagesCount ? (
+ {
+ spinnerState(),
+ getSearchPageResults(
+ currentPage + 1,
+ orderBy,
+ fieldSort
+ );
+ }}
+ >
+ {t("common:next-link-button")}
+
+ ) : (
+
+ {" "}
+ {t("common:next-link-button")}
+
+ )}
+
- {currentPage != pagesCount ? (
-
{
- spinnerState(),
- getSearchPageResults(
- currentPage + 1,
- orderBy,
- fieldSort
- );
- }}
- >
- {t("common:next-link-button")}
-
- ) : (
-
- {" "}
- {t("common:next-link-button")}
-
- )}
+
+ {t("common:pages-label")} {currentPage}{" "}
+ {t("common:of-label")} {pagesCount}
- {t("common:pages-label")} {currentPage}{" "}
- {t("common:of-label")} {pagesCount}
-