// import ImpaktApps from "@assets/impaktIcon.png";
import  GlobalData  from "@assets/globaldata.svg";
import  ReatApi  from "@assets/api.svg";
import  Transformer  from "@assets/transformer.svg";
import  Other  from "@assets/other.svg";
import AltRouteIcon from "@mui/icons-material/AltRoute";
import { ActionType } from "@/redux/currentApp/action/interface";
export const getIconFromResourceType = (
  resourceType: ActionType|"other",
  height?: string | number
) => {
  switch (resourceType) {
    case "restapi":
      return <ReatApi height={height}/>;
    case "setRouter":
      return <AltRouteIcon style={{ height: height }} />;
    case "globalData":
      return <GlobalData />;
    case "transformer":
      return <Transformer />;
    case "other":
      return <Other />;
    case "impaktapps":
      return (
        <div>
          <img
            src={""}
            alt="impaktapps"
            width={height || 34}
            height={height || 40}
            style={{ paddingTop: "6px" }}
          />
        </div>
      );
  }
};
