mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-22 21:14:18 +00:00
17 lines
498 B
JavaScript
17 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>
|
||
|
)
|
||
|
}
|