1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 21:14:18 +00:00
pds-2021-g2-nest/code/frontend/src/components/ButtonSidebar.js
Stefano Pigozzi c726df9531
Add ButtonSidebar
2021-04-21 15:53:23 +02:00

16 lines
498 B
JavaScript

import React from "react"
import Style from "./ButtonSidebar.module.css"
import classNames from "classnames"
import make_icon from "../utils/make_icon"
export default function ButtonSidebar({ icon, children, className, ...props }) {
return (
<button className={classNames(Style.ButtonSidebar, className)} {...props}>
{make_icon(icon, Style.ButtonIcon)}
<div className={Style.ButtonText}>
{children}
</div>
</button>
)
}