import type React from "react";

export type TableColumn<T> = {
  id: string;
  header: React.ReactNode;
  accessor: keyof T | ((row: T) => React.ReactNode);
  className?: string;
  disableRowLink?: boolean;
};

export type ActionItem<T = any> = {
  id?: string;
  label: string | ((row: T) => string);
  onClick: (row: T, event?: React.MouseEvent) => void;
  className?: string;
  divider?: boolean;
  isDanger?: boolean;
  icon?: React.ReactNode;
  isSuccess?: boolean;
  disabled?: boolean;
  hidden?: (row: T) => boolean;
};
