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