export type Fetch = {
  headers?: { [x: string]: string };
  data: any;
  method?: string;
  url: string;
};

export type Component = {
  id?: string;
  style?: string;
  upload_id?: string;
  fetch_data?: Fetch;
};

export type Events = {
  uploadError: { completed: boolean; id: string; error: Error };
  uploadComplete: { completed: boolean; id: string };
  modalShow: { id: string; show: boolean };
};
