import { IVTableProps } from '.' import React from 'react' import { TableControls } from './DesktopTable' import classNames from 'classnames' import TableRowMenu from './TableRowMenu' import RenderValue from '../RenderValue' type OrientationTableProps = IVTableProps & { tableRef: (node: HTMLDivElement) => void columnSizes: number[] } export default function DesktopVerticalTable(props: OrientationTableProps) { return (
{props.showControls && } {props.table.currentPage.length === 0 && !!props.table.searchQuery && (
No records found matching '{props.table.searchQuery}'
)} {props.table.currentPage.length > 0 && (
{props.table.isSelectable && (
 
)} {props.table.columns.map((col, colIdx) => (
{col.label}
))} {props.table.hasRowMenus && (
 
)}
{props.table.isSelectable && ( {props.table.currentPage.map(row => ( ))} )} {props.table.columns.map(col => { return ( {props.table.currentPage.map(row => { return ( ) })} ) })} {props.table.hasRowMenus && ( {props.table.currentPage.map(row => ( ))} )}
{row.menu && }
)} {props.showControls && }
) }