const DRAWER_OVERLAYS = new Set(['create', 'eval', 'sandbox'])

export function getOverlayLayout(activeOverlay) {
  if (!DRAWER_OVERLAYS.has(activeOverlay)) {
    return {
      sidebarShouldCollapse: false,
      panelWidthClass: '',
      panelSideClass: '',
      mobilePanelWidthClass: '',
    }
  }

  return {
    sidebarShouldCollapse: true,
    panelWidthClass: 'w-[80vw]',
    panelSideClass: 'right-0',
    mobilePanelWidthClass: 'max-md:w-[100vw]',
  }
}
