import { useAuth } from "../../contexts/authContext"; import Image from "next/image"; import { FaMicrophoneAlt, FaHeadphonesAlt, FaTh, FaBell, FaSearch, FaBuilding, FaCalendarDay, FaClock, } from "react-icons/fa"; import { useTeamDashboardContext } from "../../contexts/teamDashboardContext"; import router from "next/router"; import Moment from "react-moment"; export default function Header() { const { logOut } = useAuth(); const { team } = useTeamDashboardContext(); async function handleSignOut() { console.log("clicked log out button"); try { await logOut(); router.push("/teams"); } catch (error) { console.log(error); } } var today = new Date(); return (
{/* welcome message */} πŸ‘‹Hey Arjun, Good Afternoon! {/* Date and time */} {team.name} {/* header control section */} {/* search bar */}
{/* avatar */} profile
); }