/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-explicit-any */
// import {
//   DEFAULT_ASIDE_COLUMNS_NUMBER,
//   DEFAULT_BODY_COLUMNS_NUMBER,
// } from "@/page/App/components/DotPanel/constant/canvas"
// import { WidgetLayoutInfo } from "@/redux/currentApp/layoutInfo/layoutInfoState"
type WidgetLayoutInfo = any;
import { DEFAULT_ASIDE_COLUMNS_NUMBER, DEFAULT_BODY_COLUMNS_NUMBER } from "../basicConfig"



export const getCurrentSectionColumnNumberByChildDisplayName = (
  displayName: string,
  store:any
): number => {
return DEFAULT_BODY_COLUMNS_NUMBER  
  
}

export function searchParent(
  displayName: string,
  widgetLayoutInfo: Record<string, WidgetLayoutInfo>,
): string[] {
  const parent = widgetLayoutInfo[displayName]?.parentNode
  if (parent) {
    return [parent, ...searchParent(parent, widgetLayoutInfo)]
  }
  return []
}
