ERP-node/frontend/lib/registry/components/GroupRenderer.tsx

20 lines
531 B
TypeScript
Raw Normal View History

2025-09-10 14:09:32 +09:00
"use client";
import React from "react";
import { ComponentData } from "@/types/screen";
import { componentRegistry, ComponentRenderer } from "../DynamicComponentRenderer";
// 그룹 컴포넌트 렌더러
const GroupRenderer: ComponentRenderer = ({ component, children, ...props }) => {
return (
<div className="relative h-full w-full">
<div className="absolute inset-0">{children}</div>
</div>
);
};
// 레지스트리에 등록
componentRegistry.register("group", GroupRenderer);
export { GroupRenderer };