import React from 'react'; import { Col, Row, Pagination, } from 'antd'; import TaskItem from '../../containers/tasks-page/task-item'; export interface ContentListProps { onSwitchPage(page: number): void; currentTasksIndexes: number[]; currentPage: number; numberOfTasks: number; } export default function TaskListComponent(props: ContentListProps) { const tasks = props.currentTasksIndexes; const taskViews = tasks.map( (tid, id) => ); return ( <> { taskViews } ) }