20 lines
513 B
TypeScript
20 lines
513 B
TypeScript
"use client";
|
|
|
|
import React, { useEffect } from "react";
|
|
import { ComponentRegistry } from "../../ComponentRegistry";
|
|
import { EntitySearchInputDefinition } from "./index";
|
|
|
|
export function EntitySearchInputRenderer() {
|
|
useEffect(() => {
|
|
ComponentRegistry.registerComponent(EntitySearchInputDefinition);
|
|
console.log("✅ EntitySearchInput 컴포넌트 등록 완료");
|
|
|
|
return () => {
|
|
// 컴포넌트 언마운트 시 해제하지 않음 (싱글톤 패턴)
|
|
};
|
|
}, []);
|
|
|
|
return null;
|
|
}
|
|
|