import React from "react"; import { FaSignOutAlt } from "react-icons/fa"; import { Link, NavLink } from "react-router-dom"; export const handleLogout = async () => { let res = await fetch(`${import.meta.env.VITE_APP_API_URL}/logout`, { method: "GET", credentials: "include", }); return res; }; const Sidebar = ({ role }) => (

{`${role} Portal`}

Travel Policy SVU

{/* Spacer to push logout to the bottom */}
Logout
); export default Sidebar;