import React, { useEffect, FunctionComponent, useContext } from 'react'; import { View, ViewStyle, ListRenderItemInfo } from 'react-native'; import styles from './PixelLastTopicsListStyles'; import usePixelLastTopicsListTranslation from './PixelLastTopicsListTranslation' import { PixelStyles } from 'react-native-pixel-styles'; import { PixelTopicButton } from '../PixelTopicButton/PixelTopicButton'; import { PixelTopic } from '../../Model/PixelTopic'; import { ForumHeaderText } from '../ForumHeaderText/ForumHeaderText'; import { PixelwolfFlatlist } from 'react-native-pixel-components'; import { topicStoreContext } from '../../Store/TopicStore'; interface IProps { // Props type definition style?: ViewStyle | ViewStyle[] } interface IState { // State type definition } export const PixelLastTopicsList: FunctionComponent = (props) => { const { I18n } = usePixelLastTopicsListTranslation() const themeStore = useContext(PixelStyles.pixelThemeStoreContext) const topicStore = useContext(topicStoreContext) const initialState: IState = { }; // ComponentDidMount useEffect(() => { return () => { //ComponentDidUnmount } }, []) const renderTopic = (item: ListRenderItemInfo) => { return } const renderPlaceholder = () => { return } return ( {I18n.translation.LastTopics} ); };