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