import { IProduct } from '@/entities/Product' ; import ProductRepository from '@/repositories/ProductRepository' ; export interface IPresenter { productRepository : ProductRepository ; } export interface IPresenterState { items : IProduct [ ] ; } export default ( { productRepository } ) : IPresenterState => { return { items : productRepository . getItems ( ) } ; } ;