Created the SidebarContent.jsx
This commit is contained in:
parent
3623eb7b9b
commit
7c78e0f1ae
@ -0,0 +1,29 @@
|
|||||||
|
import PowerItemGroup from "./components/PowerItemGroup";
|
||||||
|
import PowerItem from "./components/PowerItem";
|
||||||
|
import "./styles.sass";
|
||||||
|
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
||||||
|
import {faSearch} from "@fortawesome/free-solid-svg-icons";
|
||||||
|
import {routes} from "@/common/routes";
|
||||||
|
|
||||||
|
export const SidebarContent = () => {
|
||||||
|
return (
|
||||||
|
<div className="sidebar-content">
|
||||||
|
<div className="search-item">
|
||||||
|
<FontAwesomeIcon icon={faSearch}/>
|
||||||
|
<input type="text" placeholder="Tool suchen..."/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div className="power-item-area">
|
||||||
|
|
||||||
|
{Object.keys(routes).map((route) => (
|
||||||
|
<PowerItemGroup name={route} key={route}>
|
||||||
|
{routes[route].map((route) => (
|
||||||
|
<PowerItem icon={route.icon} name={route.name} path={route.path} key={route.path} />
|
||||||
|
))}
|
||||||
|
</PowerItemGroup>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
Reference in New Issue
Block a user