import React from 'react'; import style from './SideBar.module.css'; import GlobalInfos from '../../utils/GlobalInfos'; interface SideBarProps { hiddenFrame?: boolean; width?: string; } /** * component for sidebar-info */ class SideBar extends React.Component { render(): JSX.Element { const themeStyle = GlobalInfos.getThemeStyle(); const classnn = style.sideinfogeometry + ' ' + (this.props.hiddenFrame === undefined ? style.sideinfo + ' ' + themeStyle.secbackground : ''); return (
{this.props.children}
); } } /** * The title of the sidebar */ export class SideBarTitle extends React.Component { render(): JSX.Element { const themeStyle = GlobalInfos.getThemeStyle(); return
{this.props.children}
; } } /** * An item of the sidebar */ export class SideBarItem extends React.Component { render(): JSX.Element { const themeStyle = GlobalInfos.getThemeStyle(); return (
{this.props.children}
); } } export default SideBar;