import React, { useState, useEffect } 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 './WelcomeLogo.module.scss';
import logo from './assets/logo-wf.svg';

const styles = classNames.bind(styleIdentifiers);

export interface WelcomeLogoProps {}

const WelcomeLogo = (props: WelcomeLogoProps) => {
  // mapStateToProps
  const lg = useSelector((state: StoreState) => state.content.lg);
  // Allow to dispatch actions
  const dispatch = useDispatch();

  return (
    <div className={styles('welcome-logo')}>
      <TextItem tag="div" className={styles('text')} path="forms.login.welcome" />
      <img src={logo} alt="logo" />
    </div>
  );
};

export default WelcomeLogo;
