import { useEffect } from "react"; import { Link } from "react-router-dom"; import { useAuth } from "../../context/auth_context.js" const SubNav = () => { const { user, setUser, logout } = useAuth(); return ( <> {(user.role !== "user") ? : } ) } export default SubNav