let currentImgPage = 0;
let currentImg = MotorcylingJourney[currentImgPage];
const nextImg = () => {
if (currentImgPage === MotorcylingJourney.length - 1) return;
currentImgPage++;
currentImg = MotorcylingJourney[currentImgPage];
};
const prevImg = () => {
if (currentImgPage === 0) return;
currentImgPage--;
currentImg = MotorcylingJourney[currentImgPage];
};
let currentImgPage = 0;
let currentImg = MotorcylingJourney[currentImgPage];
const nextImg = () => {
if (currentImgPage === MotorcylingJourney.length - 1) return;
currentImgPage++;
currentImg = MotorcylingJourney[currentImgPage];
};
const prevImg = () => {
if (currentImgPage === 0) return;
currentImgPage--;
currentImg = MotorcylingJourney[currentImgPage];
};