import React, { useState } from "react"; import Navbar from "react-bootstrap/Navbar"; import Nav from "react-bootstrap/Nav"; import Container from "react-bootstrap/Container"; import logo from "../Assets/logo.png"; import Button from "react-bootstrap/Button"; import { Link } from "react-router-dom"; import { CgGitFork } from "react-icons/cg"; import { ImBlog } from "react-icons/im"; import { AiFillStar, AiOutlineHome, AiOutlineFundProjectionScreen, AiOutlineUser, } from "react-icons/ai"; import { CgFileDocument } from "react-icons/cg"; function NavBar() { const [expand, updateExpanded] = useState(false); const [navColour, updateNavbar] = useState(false); function scrollHandler() { if (window.scrollY >= 20) { updateNavbar(true); } else { updateNavbar(false); } } window.addEventListener("scroll", scrollHandler); return (

MS

{ updateExpanded(expand ? false : "expanded"); }} >
); } export default NavBar;