import React from 'react'; import style from './PageTitle.module.css'; import GlobalInfos from '../../utils/GlobalInfos'; interface props { title: string; subtitle: string | number | null; } /** * Component for generating PageTitle with bottom Line */ class PageTitle extends React.Component { render(): JSX.Element { const themeStyle = GlobalInfos.getThemeStyle(); return (
{this.props.title} {this.props.subtitle} <> {this.props.children}
); } } /** * class to override default
color and styling * use this for horizontal lines to use the current active theming */ export class Line extends React.Component { render(): JSX.Element { const themeStyle = GlobalInfos.getThemeStyle(); return ( <>
); } } export default PageTitle;