| Total Complexity | 1 |
| Complexity/F | 1 |
| Lines of Code | 25 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import PropTypes from "prop-types" |
||
| 2 | import React from "react" |
||
| 3 | |||
| 4 | import "./header-bg-title.scss" |
||
| 5 | |||
| 6 | class HeaderBgTitle extends React.Component { |
||
| 7 | render() { |
||
| 8 | return ( |
||
| 9 | <header className={`page-header-title ${this.props.classes || ``}`}> |
||
| 10 | <h1> |
||
| 11 | {this.props.title} {this.props.highlight && <span className={`highlight`}>{this.props.highlight}</span>} |
||
| 12 | </h1> |
||
| 13 | </header> |
||
| 14 | ) |
||
| 15 | } |
||
| 16 | } |
||
| 17 | |||
| 18 | HeaderBgTitle.propTypes = { |
||
| 19 | title: PropTypes.string.isRequired, |
||
| 20 | highlight: PropTypes.string, |
||
| 21 | classes: PropTypes.string, |
||
| 22 | } |
||
| 23 | |||
| 24 | export default HeaderBgTitle |
||
| 25 |