import React, { useState, memo } from 'react' import { hiddenList, visibleList } from '@app/stylesheets/list.module.css' import { Issue } from '@app/types' import { FeedIssue } from '../../../feed/issue' import { ListCellHeader } from './cell-header' // return issues maped const IssuesWrapper = ({ issues, pageUrl, open, small, singleRow, }: Issue & { open?: boolean; small?: boolean; singleRow?: boolean }) => { const [visible, setVisible] = useState(!!open) return (
    {issues?.map((props: any, index: number) => ( ))}
) } // memo expensive issues export const Issues = memo(IssuesWrapper)