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