"use client";
import type { Block, ButtonBlockProps, FormBlockProps } from "@/features/editor/state/editorStore";
interface FormControllerPanelProps {
block: Block; // type === "form"
blocks: Block[];
selectedBlockId: string | null;
updateBlock: (id: string, partial: any) => void;
}
export function FormControllerPanel({ block, blocks, selectedBlockId, updateBlock }: FormControllerPanelProps) {
if (!selectedBlockId || block.id !== selectedBlockId) return null;
const formProps = block.props as FormBlockProps;
return (
이 폼은 퍼블릭 페이지에서 /api/forms/submit
엔드포인트로 먼저 전송된 뒤, 설정에 따라 내부 처리 또는 Webhook 으로 전달됩니다.
전송 대상
{formProps.submitTarget === "webhook" && (
)}
폼 메시지
);
}