import { PanelBar, PanelBarExpandMode } from "@progress/kendo-react-layout";
import { ComprehensiveProps } from "../../DomainProps";

export interface AccordianProps extends ComprehensiveProps {
  expandMode?: PanelBarExpandMode;
  expanded?: string[] | undefined;
  direction?: string | undefined;
  accordianItems: any | any[];
}

export default function Accordian({
  accordianItems,
  expandMode = "single",
  expanded,
  direction,
  widgetStyle,
}: AccordianProps) {
  return (
    <PanelBar
      expandMode={expandMode}
      expanded={expanded}
      dir={direction}
      className={widgetStyle?.className || ""}
    >
      {Array.isArray(accordianItems)
        ? accordianItems?.map((accordianItem) => {
            return "SSSSS";
          })
        : "7777"}
    </PanelBar>
  );
}
