import { Box, Image, SimpleGrid } from '@chakra-ui/react' import { motion, useInView } from 'framer-motion' import { useRef } from 'react' import {useRouterState } from '@tanstack/react-router' const MotionImage = motion.create(Image) const MotionBox = motion.create(Box) const MotionSimpleGrid = motion.create(SimpleGrid) function OilInfo() { const mainRef = useRef(null); const isMainInView = useInView(mainRef, { once: true }); const { location } = useRouterState(); const handleRecipeNavigation = () => { const isOnRecipePage = location.pathname === '/40+/recipe'; if (isOnRecipePage) { // Already on recipe page return; } // Navigate from main page - force reload to ensure Instagram embeds work window.location.href = '/40+/recipe'; }; return ( ) } export default OilInfo;