1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-23 05:24:18 +00:00
pds-2021-g2-nest/code/frontend/src/components/Sidebar.js

22 lines
829 B
JavaScript
Raw Normal View History

2021-04-21 13:08:54 +00:00
import React from "react"
import Style from "./Sidebar.module.css"
import classNames from "classnames"
2021-04-21 13:37:12 +00:00
import Logo from "./Logo"
2021-04-21 13:53:23 +00:00
import ButtonSidebar from "./ButtonSidebar"
import { faCog, faExclamationTriangle, faFolder, faHome } from "@fortawesome/free-solid-svg-icons"
2021-04-21 13:08:54 +00:00
export default function Sidebar({ children, className, ...props }) {
return (
<div className={classNames(Style.Sidebar, className)} {...props}>
{/* TODO: Aggiungere il logo qui! */}
2021-04-21 13:37:12 +00:00
<Logo/>
2021-04-21 13:53:23 +00:00
<ButtonSidebar icon={faHome}>Dashboard</ButtonSidebar>
<ButtonSidebar icon={faFolder}>Repositories</ButtonSidebar>
<ButtonSidebar icon={faExclamationTriangle}>Alerts</ButtonSidebar>
<ButtonSidebar icon={faCog}>Settings</ButtonSidebar>
2021-04-21 13:08:54 +00:00
{children}
</div>
)
}