UNPKG

@stakefish/ui

Version:

<div align="center"> <a href="https://www.npmjs.com/package/@stakefish/ui"><img src="https://gateway.pinata.cloud/ipfs/QmbZL1ceA8Yiz2pKALTg919jYx141DPUGegC9L4XpyayW5" width="300" /></a> </div>

26 lines (25 loc) 743 B
import React from "react"; import { HeadSortCell } from "./TableHeadSort"; import { CellDataContent } from "./TableContainer"; /** * Utilities */ export declare function createCellSortData(dataSets: CellDataContentSort[], cellDataKeys: Array<keyof CellDataSort>): CellDataSort; /** * Types */ interface CellDataContentSort extends CellDataContent { /** * The data as sorting reference */ key: string; } export interface CellDataSort { [cellKey: string]: CellDataContentSort; } export interface TableContainerSortProps { headCells: HeadSortCell[]; bodyCellsRows: CellDataSort[]; } declare const TableContainerSort: React.FC<TableContainerSortProps>; export default TableContainerSort;