"use client";

import React from "react";
import { AutoRegisteringComponentRenderer } from "../../AutoRegisteringComponentRenderer";
import { BomItemEditorComponent } from "./BomItemEditorComponent";
import { V2BomItemEditorDefinition } from "./index";

export class BomItemEditorRenderer extends AutoRegisteringComponentRenderer {
  static componentDefinition = V2BomItemEditorDefinition;

  render(): React.ReactElement {
    return <BomItemEditorComponent {...this.props} />;
  }
}

BomItemEditorRenderer.registerSelf();

if (typeof window !== "undefined") {
  setTimeout(() => {
    BomItemEditorRenderer.registerSelf();
  }, 0);
}
