{"size": 449, "ext": "js", "max_stars_repo_path": "packages/landing/src/styles/zindex.js", "max_stars_repo_name": "Jaren831/Tartarus", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "packages/landing/src/styles/zindex.js", "max_issues_repo_name": "Jaren831/Tartarus", "max_issues_repo_issues_event_min_datetime": "2021-05-11T08:47:51.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-22T11:18:46.000Z", "max_forks_repo_path": "packages/landing/src/styles/zindex.js", "max_forks_repo_name": "JarenL/Tartarus", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 20.4090909091, "max_line_length": 97, "alphanum_fraction": 0.6815144766}
export const ELEMENTS = {
  MENUBAR: 'menubar',
  COMPOSE: 'compose',
  OVERLAY: 'overlay',
  MAIN_SECTION: 'main-section',
  FOOTER: 'footer',
  CONTENT: 'content',
  DESERT: 'desert'
};

const order = [
  ELEMENTS.DESERT,
  ELEMENTS.MAIN_SECTION,
  ELEMENTS.FOOTER,
  ELEMENTS.CONTENT,
  ELEMENTS.OVERLAY,
  ELEMENTS.COMPOSE,
  ELEMENTS.MENUBAR
];

export const zIndexFor = (element, yolo) => ({ zIndex: yolo ? 999999 : order.indexOf(element) });
