mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-26 15:04:18 +00:00
26 lines
1.1 KiB
JavaScript
26 lines
1.1 KiB
JavaScript
import React from "react"
|
|
import Style from "./Sidebar.module.css"
|
|
import classNames from "classnames"
|
|
import Logo from "./Logo"
|
|
import ButtonSidebar from "./ButtonSidebar"
|
|
import { faCog, faExclamationTriangle, faFolder, faHome, faWrench } from "@fortawesome/free-solid-svg-icons"
|
|
|
|
|
|
export default function Sidebar({ children, className, ...props }) {
|
|
return (
|
|
<div className={classNames(Style.Sidebar, className)} {...props}>
|
|
{/* TODO: Aggiungere il logo qui! */}
|
|
<Logo/>
|
|
<ButtonSidebar to={"/"} icon={faHome}>Dashboard</ButtonSidebar>
|
|
<ButtonSidebar to={"/repositories"} icon={faFolder}>Repositories</ButtonSidebar>
|
|
<ButtonSidebar to={"/alerts"} icon={faExclamationTriangle}>Alerts</ButtonSidebar>
|
|
<ButtonSidebar to={"/settings"} icon={faCog}>Settings</ButtonSidebar>
|
|
{
|
|
process.env.NODE_ENV === "development" ?
|
|
<ButtonSidebar to={"/sandbox"} icon={faWrench}>Sandbox</ButtonSidebar>
|
|
: null
|
|
}
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|