import React from 'react';
import { useRouter } from 'next/router';
import 'primeicons/primeicons.css';
const BottomBar = () => {
const router = useRouter();
const isActive = (path) => {
return router.pathname === path;
};
return (
router.push('/')} className={`cursor-pointer p-2 rounded-lg ${isActive('/') ? 'bg-gray-700' : ''}`}>
router.push('/content')} className={`cursor-pointer p-2 rounded-lg ${isActive('/content') ? 'bg-gray-700' : ''}`}>
router.push('/feed')} className={`cursor-pointer p-2 rounded-lg ${isActive('/feed') ? 'bg-gray-700' : ''}`}>
);
};
export default BottomBar;