Files
skb-kit/src/components/Navbar/Navbar.jsx
T

49 lines
1.1 KiB
React
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { scb as logo } from '../../assets/images';
import { NavLink } from "react-router-dom";
import NavbarLink from './NavbarLink';
import './Navbar.styles.scss';
const mock = [
{
text: "НОВОСТИ",
to: "/news",
},
{
text: "О НАС",
to: "/aboutus",
},
{
text: "ЛАБОРАТОРИИ",
to: "/labs",
},
{
text: "ПРОЕКТЫ",
to: "/projects",
},
{
text: "КОНТАКТЫ",
to: "/contact",
},
{
text: "ИКТИБ",
to: "https://ictis.sfedu.ru",
newTab: true,
},
];
function Navbar({ links = mock }) {
return (
<div className="navbar">
<NavbarLink link={{ to: "/" }} >
<div className="logo-container">
<img src={logo} className="logo" alt="SCB logo" />
</div>
</NavbarLink>
<div className="bar">
{links.map(link => <NavbarLink link={link} />)}
</div>
</div>
);
}
export default Navbar;