const ogImage = "https://uksnackattack.co.uk/media/reels/202107/AQMtWTE6UQGBop_o4fAFDOUJ7OqbS6XL3ojnCeFjd_W1ropZcuEJefcJuxhDKDnW4hX88Yof0tfKpKroV5LuMgSIvNbUzxKwNFSKg_17935219933582385.mp4"; // Replace this dynamically with your media URL
const isVideo = ogImage.endsWith(".mp4"); //...