UNPKG

bootstrap-based-components

Version:
17 lines (16 loc) 645 B
import React from 'react'; import { StandardCardProps } from '../StandardCard'; import './style.scss'; interface ColumnConfig<T> { key: keyof T; name: string; } interface TableProps<T> { columnConfig: ColumnConfig<T>[]; dataSource: T[]; children?: React.ReactNode; onClick?: (event: React.MouseEvent<HTMLTableRowElement, MouseEvent>, data: T) => void; } declare type TableCardProps<T> = TableProps<T> & StandardCardProps; declare function DataGridCard<T>({ header, img, title, footer, columnConfig, dataSource, className, children, onClick }: TableCardProps<T>): JSX.Element; export default DataGridCard;