import React from "react";
import { TableBuilder as BaseTableBuilder } from "baseui/table-semantic";

export interface TableProps {
  children?: React.ReactNode;
  data: any;
  sortColumn?: any;
  sortOrder?: any;
  onSort?: (id: any) => void;
}

/**
 * This is the `<Table>` component <br />
 *  Use display table data
 */
const Table: React.FC<TableProps> = (props) => {
  return <BaseTableBuilder {...props}>{props.children}</BaseTableBuilder>;
};

export default Table;
