---
/**
 * Standalone form component.
 *
 * Use this outside Portable Text content to embed a form directly.
 *
 * @example
 * ```astro
 * ---
 * import { Form } from "@emdash-cms/plugin-forms/ui";
 * ---
 *
 * <Form id="contact-form" />
 * ```
 */
import FormEmbed from "./FormEmbed.astro";

interface Props {
	/** Form ID or slug */
	id: string;
}

const { id } = Astro.props;
---

<FormEmbed node={{ formId: id }} />
