mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-16 10:16:16 +01:00
19 lines
304 B
JavaScript
19 lines
304 B
JavaScript
|
|
// @flow
|
||
|
|
import React from "react";
|
||
|
|
|
||
|
|
type Props = {
|
||
|
|
subtitle?: string
|
||
|
|
};
|
||
|
|
|
||
|
|
class Subtitle extends React.Component<Props> {
|
||
|
|
render() {
|
||
|
|
const { subtitle } = this.props;
|
||
|
|
if (subtitle) {
|
||
|
|
return <h1 className="subtitle">{subtitle}</h1>;
|
||
|
|
}
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export default Subtitle;
|