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 './projectBasicCard.scss';

const styles = classNames.bind(styleIdentifiers);

export interface StateProps {}

export interface DispatchProps {}

export interface OwnProps {}

export type ProjectBasicCardProps = StateProps & DispatchProps & OwnProps;

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

  return (
    <div className={styles('project-basic-card', customClassName)}>
      <img src={icon} alt="" />
      <h2>
        <TextItem path={title} />
      </h2>
    </div>
  );
};

export default ProjectBasicCard;
