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