21 lines
652 B
TypeScript
21 lines
652 B
TypeScript
|
|
"use client";
|
||
|
|
|
||
|
|
import React from "react";
|
||
|
|
import { AutoRegisteringComponentRenderer } from "../../AutoRegisteringComponentRenderer";
|
||
|
|
import { V2ApprovalStepDefinition } from "./index";
|
||
|
|
import { ApprovalStepComponent } from "./ApprovalStepComponent";
|
||
|
|
|
||
|
|
/**
|
||
|
|
* ApprovalStep 렌더러
|
||
|
|
* 자동 등록 시스템을 사용하여 컴포넌트를 레지스트리에 등록
|
||
|
|
*/
|
||
|
|
export class ApprovalStepRenderer extends AutoRegisteringComponentRenderer {
|
||
|
|
static componentDefinition = V2ApprovalStepDefinition;
|
||
|
|
|
||
|
|
render(): React.ReactElement {
|
||
|
|
return <ApprovalStepComponent {...this.props} renderer={this} />;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
ApprovalStepRenderer.registerSelf();
|