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