import React, {Component} from 'react'; import {NavLink} from "react-router-dom"; interface State { data: any } type Props = { isToggle: boolean } class SideBar extends Component { constructor(props: Props) { super(props); this.state = { data: [ { title: "Dashboard", link: "/logged/dashboard", icon: "dashboard-icon", disabled: false }, { title: "Products", link: "/logged/products", icon: "product-icon", disabled: false }, { title: "Sales", link: "/logged/sales", icon: "sales-icon", disabled: false }, { title: "stores", link: "/logged/stores", icon: "store-icon", disabled: false }, { title: "Supplies", link: "/logged/supplies", icon: "supplies-icon", disabled: false }, { title: "Report", link: "/logged/reports", icon: "supplies-icon", disabled: false }, ] } } render() { const width = this.props.isToggle? "" : "0px"; return (
{/**/} {/* caravan*/} {/**/} caravan commerce
{/* ); } } export default SideBar;