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;