import { createBlock } from "@wordpress/blocks";

const transforms = {
	to: [
		/* supported to transforms */
	],
	from: [
		{
			type: "block",
			blocks: ["homegrade-content-blocks/questions-container"],
			transform: ({ relatedPostId }) => {
				return createBlock("homegrade-content-blocks/post-content-container", {
					relatedPostId,
					postType: "questions",
				});
			},
		},
		{
			type: "block",
			blocks: ["core/paragraph"],
			transform: () => {
				return createBlock("homegrade-content-blocks/post-content-container");
			},
		},
	],
};

export default transforms;
