You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NavigateSectionListSectionHeader.js 719B

1234567891011121314151617181920212223242526272829303132333435
  1. // @flow
  2. import React, { Component } from 'react';
  3. import Text from './Text';
  4. import type { Section } from '../../Types';
  5. type Props = {
  6. /**
  7. * A section containing the data to be rendered
  8. */
  9. section: Section
  10. }
  11. /**
  12. * Implements a React/Web {@link Component} that renders the section header of
  13. * the list
  14. *
  15. * @extends Component
  16. */
  17. export default class NavigateSectionListSectionHeader extends Component<Props> {
  18. /**
  19. * Renders the content of this component.
  20. *
  21. * @returns {ReactElement}
  22. */
  23. render() {
  24. return (
  25. <Text className = 'navigate-section-section-header'>
  26. { this.props.section.title }
  27. </Text>
  28. );
  29. }
  30. }