import { SVGIcon } from "@progress/kendo-react-common";
import {
  plusIcon,
  pencilIcon,
  trashIcon,
  importIcon,
  xIcon,
  checkIcon,
  gearIcon,
  slidersIcon,
  arrowRotateCwIcon,
  searchIcon,
  copyIcon,
  saveIcon,
  starIcon,
  starOutlineIcon,
  infoCircleIcon,
} from "@progress/kendo-svg-icons";

const loadIcon = (name: String): SVGIcon => {
  switch (name?.toLocaleLowerCase()) {
    case "pencil":
      return pencilIcon;
    case "delete":
      return trashIcon;
    case "close":
      return xIcon;
    case "right":
      return checkIcon;
    case "setting":
      return gearIcon;
    case "download":
      return importIcon;
    case "filter":
      return slidersIcon;
    case "reset":
      return arrowRotateCwIcon;
    case "search":
      return searchIcon;
    case "plus":
      return plusIcon;
    case "copy":
      return copyIcon;
    case "save":
      return saveIcon;
    case "star":
      return starOutlineIcon;
    case "load":
      return infoCircleIcon;
    default:
      return pencilIcon;
  }
};
export default loadIcon;
