---
/**
 * Wrapper for the inline Portable Text editor.
 *
 * This exists as a separate .astro component so that the static import
 * of the React component is visible to Astro's build pipeline — required
 * for `client:load` to find a matching renderer.
 */
import { InlinePortableTextEditor } from "./InlinePortableTextEditor";

export interface Props {
	value: unknown[];
	collection: string;
	entryId: string;
	field: string;
}

const { value, collection, entryId, field } = Astro.props;
---

<InlinePortableTextEditor
	client:only="react"
	value={value}
	collection={collection}
	entryId={entryId}
	field={field}
/>
