// PGTemplateList.tsx 
import React, { Component } from 'react';
import IPGTemplateListState from './IPGTemplateListState'; 
import IPGTemplateListProps from './IPGTemplateListProps';
import WDWidgetBase from '@widgets/WDWidgetBase/WDWidgetBase';
import WDHeader from '@widgets/WDHeader/WDHeader';
import WDList from '@widgets/WDList/WDList';
import WDCard from '@widgets/WDCard/WDCard';
import "./PGTemplateList.css";
import WDMainContent from '@widgets/WDMainContent/WDMainContent';
import WDSidebar from '@widgets/WDSidebar/WDSidebar';

export default class PGTemplateList extends WDWidgetBase<IPGTemplateListProps, IPGTemplateListState>{

  constructor(props: any) {
    super(props);
    this.receiveEvents = true;
  }

  renderContent() {

    return(
      <div>
        <WDHeader debug name="myHeader"/>
        <WDSidebar header>
          <WDCard title="Filtro">
            <h2>Qui scrivo qualche cosa</h2>  
          </WDCard>
        </WDSidebar>
        <WDMainContent header sidebar>
          <WDCard title="Elenco Movimenti">
            <WDList debug name="myLista"/>
          </WDCard>
        </WDMainContent>
      </div>
    );

  }
  
}
