import React from 'react'; import { List, Progress, Typography } from "antd"; import cn from "classnames"; interface Props { list: any; selected: any; onClickHandler: (event: any, data: any) => void; } function CardSessionsByList({ list, selected, onClickHandler }: Props) { return ( ( onClickHandler(e, row)} // Remove onClick handler to disable click interaction style={{ borderBottom: '1px dotted rgba(0, 0, 0, 0.05)', padding: '4px 10px', lineHeight: '1px' }} className={cn('rounded', selected === row.name ? 'bg-active-blue' : '')} // Remove hover:bg-active-blue and cursor-pointer >
{row.name} {row.sessionCount}
)} />
)} /> ); } export default CardSessionsByList;