"use client";

import React from "react";
import { AutoRegisteringComponentRenderer } from "../../AutoRegisteringComponentRenderer";
import { LocationSwapSelectorDefinition } from "./index";
import { LocationSwapSelectorComponent } from "./LocationSwapSelectorComponent";

/**
 * LocationSwapSelector 렌더러
 */
export class LocationSwapSelectorRenderer extends AutoRegisteringComponentRenderer {
  static componentDefinition = LocationSwapSelectorDefinition;

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

// 자동 등록 실행
LocationSwapSelectorRenderer.registerSelf();

// Hot Reload 지원 (개발 모드)
if (process.env.NODE_ENV === "development") {
  LocationSwapSelectorRenderer.enableHotReload();
}

