title: Stateless component using Redux
body: <p>My question is, can i get props from my father component if i am using redux with mapStateToProps. because im trying to pass props to my stateless component from my father component and just props from mapStateToPros are passed.</p>
  
  <p>this is my call to the component</p>
  
  <pre><code>case ModalsEnum.ListaTransferenciaDeCasos:
        return (
          &lt;ListaTransferenciasDeCasos
          openModal={(modalCode) =&gt;
            this.props.openModal(modalCode)}
            /&gt;
      );
  </code></pre>
  
  <p>this is my stateless component</p>
  
  <pre><code>import * as React from 'react';
  import '../../../assets/css/notification.css'
  import { connect }  from 'react-redux';
  import { ModalsEnum } from '../../../entities/ModalsEnum';
  
  const mapStateToProps = state =&gt; {
      return { transfereciasDeCasos: state.TransferenciaDeCasos.transferenciasDeCasos }
  }
  interface NotificationProps {
      transfereciasDeCasos:any,
      openModal: (modalCode: number) =&gt; void;
  }
  const Notification_ = ( props: NotificationProps ) =&gt; {
      const { transfereciasDeCasos, openModal } = props;
          return(
                      &lt;button className="btn btn-default btn-notification" type="button" onClick={() =&gt; openModal(ModalsEnum.ListaTransferenciaDeCasos)}&gt;
                          &lt;img className="" src={require("../../../assets/icons/file-icons/svg/ic_notifications_24px.svg")} alt=""/&gt; &lt;span&gt;{transfereciasDeCasos.length}&lt;/span&gt;                          
                      &lt;/button&gt;
          );
      }
  
  const Notification = connect(mapStateToProps)(Notification_)
  
  export default Notification
  </code></pre>