import { ElementComponent, ElementTypeName } from "./types";
import Circle from "./Circle";
import CircleOutline from "./CircleOutline";
import Clock from "./Clock";
import CustomHtml from "./CustomHtml";
import Diamond from "./Diamond";
import DiamondOutline from "./DiamondOutline";
import Image from "./Image";
import ImageSlideshow from "./ImageSlideshow";
import Rectangle from "./Rectangle";
import RectangleOutline from "./RectangleOutline";
import RichText from "./RichText";
import TextLegacy from "./TextLegacy";
import VideoMeeting from "./VideoMeeting";
import Webpage from "./Webpage";

export default {
  [ElementTypeName.Circle]: Circle,
  [ElementTypeName.CircleOutline]: CircleOutline,
  [ElementTypeName.Clock]: Clock,
  [ElementTypeName.CustomHtml]: CustomHtml,
  [ElementTypeName.Diamond]: Diamond,
  [ElementTypeName.DiamondOutline]: DiamondOutline,
  [ElementTypeName.Image]: Image,
  [ElementTypeName.ImageSlideshow]: ImageSlideshow,
  [ElementTypeName.Rectangle]: Rectangle,
  [ElementTypeName.RectangleOutline]: RectangleOutline,
  [ElementTypeName.Text]: RichText,
  [ElementTypeName.TextLegacy]: TextLegacy,
  [ElementTypeName.VideoMeeting]: VideoMeeting,
  [ElementTypeName.Webpage]: Webpage,
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
} as Record<ElementTypeName, ElementComponent<any>>;
