mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-01-04 22:02:28 +00:00
43 lines
933 B
JavaScript
43 lines
933 B
JavaScript
// @flow
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import type { SetionListSection } from '../../Types';
|
|
|
|
import Container from './Container';
|
|
import Text from './Text';
|
|
import styles from './styles';
|
|
|
|
type Props = {
|
|
|
|
/**
|
|
* A section containing the data to be rendered.
|
|
*/
|
|
section: SetionListSection
|
|
}
|
|
|
|
/**
|
|
* Implements a React/Native {@link Component} that renders the section header
|
|
* of the list.
|
|
*
|
|
* @augments Component
|
|
*/
|
|
export default class NavigateSectionListSectionHeader extends Component<Props> {
|
|
/**
|
|
* Renders the content of this component.
|
|
*
|
|
* @returns {ReactElement}
|
|
*/
|
|
render() {
|
|
const { section } = this.props.section;
|
|
|
|
return (
|
|
<Container style = { styles.listSection }>
|
|
<Text style = { styles.listSectionText }>
|
|
{ section.title }
|
|
</Text>
|
|
</Container>
|
|
);
|
|
}
|
|
}
|