UNPKG

@nodeject/ui-components

Version:

UI library for non-trivial components

15 lines (14 loc) 546 B
import { Table } from 'antd'; import * as React from 'react'; import styles from './TalkList.module.less'; export var TalkList = function (props) { var onRow = function (record, index) { return { onClick: function (event) { props.onConversationClick(record); } }; }; return (React.createElement("div", { className: styles.talkList }, React.createElement(Table, { columns: props.columns, dataSource: props.conversations, onRow: onRow, rowKey: "id" }))); };