interface DataProps {
  row: RequestItemsObject;
  rowIndex: number;
}

//ข้อมูล
interface RequestItemsObject {
  id: string;
  typeLeave: string;
  dateStartLeave: Date;
  dateEndLeave: Date;
  numLeave: number;
  sumLeave: number;
  totalLeave: number;
  status: string;
  reason: string;
  typeLeaveId: string;
}

//ข้อมูล
interface RequestItemsTotalObject {
  typeLeaveId: string;
  typeLeave: string;
  totalLeave: number;
  limitLeave: string;
  remainLeave: string;
}

//columns
interface Columns {
  [index: number]: {
    name: String;
    align: String;
    label: String;
    sortable: Boolean;
    field: String;
    headerStyle: String;
    style: String;
  };
}

export type { RequestItemsObject, Columns, DataProps, RequestItemsTotalObject };
