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