text: import React from "react";
  import { Link } from 'react-router-dom';
  const Nav = ()=> {
      return (
  
          <nav className="navbar navbar-expand-lg navbar-dark bg-primary">
              <div className="container-fluid">
                  <Link className="navbar-brand" to="/">Navbar</Link>
                  <button className="navbar-toggler" type="button" data-bs-toggle="collapse"
                          data-bs-target="#navbarColor01" aria-controls="navbarColor01" aria-expanded="false"
                          aria-label="Toggle navigation">
                      <span className="navbar-toggler-icon"></span>
                  </button>
  
                  <div className="collapse navbar-collapse" id="navbarColor01">
                      <ul className="navbar-nav me-auto">
                          <li className="nav-item">
                              <Link className="nav-link active" to="/">Home
                                  <span className="visually-hidden">(current)</span>
                              </Link>
                          </li>
                          <li className="nav-item">
                              <Link className="nav-link" to="/addContact">addContact</Link>
                          </li>
                      </ul>
                      <div className="d-flex">
                          <ul className="navbar-nav me-auto">
                              <li className="nav-item">
                                  <Link className="nav-link float-end" to="/Login">Login</Link>
                                  <Link className="nav-link float-end" to="/Register">Register</Link>
                              </li>
                          </ul>
                      </div>
                  </div>
              </div>
          </nav>
      );
  }
  
  
  export default Nav;
  