Files
OpenMediaCenter/src/elements/SideBar/SideBar.js
T

34 lines
993 B
JavaScript
Raw Normal View History

2020-06-02 22:52:28 +02:00
import React from "react";
import style from "./SideBar.module.css"
2020-08-03 18:38:22 +00:00
import StaticInfos from "../../GlobalInfos";
import darktheme from "../../AppDarkTheme.module.css";
import lighttheme from "../../AppLightTheme.module.css";
2020-06-02 22:52:28 +02:00
class SideBar extends React.Component {
render() {
2020-08-03 18:38:22 +00:00
const themeStyle = StaticInfos.isDarkTheme() ? darktheme : lighttheme;
return (<div className={style.sideinfo + ' '+ themeStyle.secbackground}>
2020-06-02 22:52:28 +02:00
{this.props.children}
</div>);
}
}
export class SideBarTitle extends React.Component {
render() {
2020-08-03 18:38:22 +00:00
const themeStyle = StaticInfos.isDarkTheme() ? darktheme : lighttheme;
return (
2020-08-03 18:38:22 +00:00
<div className={style.sidebartitle + ' '+ themeStyle.subtextcolor}>{this.props.children}</div>
);
}
}
export class SideBarItem extends React.Component {
render() {
return (
<div className={style.sidebarinfo}>{this.props.children}</div>
);
}
}
2020-06-02 22:52:28 +02:00
export default SideBar;