import React, { useState, useEffect, useCallback, useMemo } from 'react';

// Redux part
import { useSelector, useDispatch } from 'react-redux';
import { StoreState } from 'store/rootReducer';

// Import actions here

import classNames from 'classnames/bind';
import TextItem from 'components/items/TextItem';
import styleIdentifiers from './StaticPage.module.scss';

const styles = classNames.bind(styleIdentifiers);

export interface StaticPageProps {}

const StaticPage = (props: StaticPageProps) => {
  const { title, content } = props;
  // mapStateToProps
  const lg = useSelector((state: StoreState) => state.content.lg);
  // Allow to dispatch actions
  const dispatch = useDispatch();

  return (
    <div className={styles('static-page')}>
      <TextItem path={title} tag="h1" />
      <TextItem isHtml path={content} />
    </div>
  );
};

export default StaticPage;
