added page indicators
diff --git a/src/utils/createPageIndicator.ts b/src/utils/createPageIndicator.ts
new file mode 100644
index 0000000..8e18e30
--- /dev/null
+++ b/src/utils/createPageIndicator.ts
@@ -0,0 +1,22 @@
+import getEmojiByName from "./getEmojiByName.js";
+
+function pageIndicator(amount: number, selected: number, showDetails?: boolean | true) {
+ let out = "";
+
+ if (amount == 1) {
+ out += getEmojiByName("TRACKS.SINGLE." + (selected == 0 ? "ACTIVE" : "INACTIVE"));
+ } else {
+ for (let i = 0; i < amount; i++) {
+ out += getEmojiByName("TRACKS.HORIZONTAL." +
+ (i == 0 ? "LEFT" : (i == amount - 1 ? "RIGHT" : "MIDDLE")) + "." +
+ (i == selected ? "ACTIVE" : "INACTIVE")
+ );
+ }
+ }
+ if (showDetails) {
+ out += " Page " + selected + " of " + amount;
+ }
+ return out;
+}
+
+export default pageIndicator;
\ No newline at end of file