import React, { useEffect, FunctionComponent, useContext } from 'react';
import { View, ViewStyle } from 'react-native';
import styles from './ForumHeaderTextStyles';
import { PixelStyles } from 'react-native-pixel-styles';
import { PixelwolfText } from 'react-native-pixel-components';

interface IProps {
    // Props type definition
    style?: ViewStyle | ViewStyle[]

}

interface IState {
    // State type definition
}

export const ForumHeaderText: FunctionComponent<IProps> = (props) => {

    const themeStore = useContext(PixelStyles.pixelThemeStoreContext)

    const initialState: IState = {
    };


    // ComponentDidMount
    useEffect(() => {
        return () => {
            //ComponentDidUnmount
        }
    }, [])

    return (
        <PixelwolfText style={[themeStore.getMainTextStyle, styles.headerText, props.style]} weight={'bold'} size={'h3'} >
            {props.children}
        </PixelwolfText>
    );
};
