import React from "react"; import style from "./PageTitle.module.css" import darktheme from "./PageTitleDarkTheme.module.css" import lighttheme from "./PageTitleLightTheme.module.css" import StaticInfos from "../../GlobalInfos"; class PageTitle extends React.Component { constructor(props) { super(props); this.props = props; } render() { const themeStyle = StaticInfos.isDarkTheme() ? darktheme : lighttheme; return (
{this.props.title} {this.props.subtitle} <> {this.props.children}
) ; } } export default PageTitle;