import React from "react";

export enum SORT_DIRECTION {
  ASC = "ascending",
  DESC = "descending",
}

interface TableContextValues {
  handleSort(columnName: string): void;
  sortDirection: SORT_DIRECTION;
  sortColumnId: string;
  removeSpacerColumn: boolean; // Deprecated
  noResults: boolean;
  stickyColumn: boolean;
  renderInModal: boolean;
  hasBatchActions: boolean;
}

const TableContext = React.createContext<Partial<TableContextValues>>({});

export default TableContext;
