"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 };
