pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 1 | import { Component } from "react"; |
| 2 | import Styles from '../styles/sectionheading.module.css'; |
| 3 | |
pineafan | aed3024 | 2021-09-04 09:33:40 +0100 | [diff] [blame] | 4 | class SectionHeading extends Component { |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 5 | constructor(props) { |
| 6 | super(props); |
| 7 | } |
| 8 | |
| 9 | |
| 10 | render() { |
| 11 | return ( |
pineafan | df39fd4 | 2021-09-04 16:05:27 +0100 | [diff] [blame] | 12 | <h1 className={Styles.title} id={this.props.id}>{this.props.children}</h1> |
pineafan | a5ce910 | 2021-09-02 17:21:31 +0100 | [diff] [blame] | 13 | ) |
| 14 | } |
| 15 | } |
| 16 | |
pineafan | aed3024 | 2021-09-04 09:33:40 +0100 | [diff] [blame] | 17 | export default SectionHeading; |