# extendify/3.1.5/src/Agent/workflows/block-selector/components/BlockPatchingConfirm.jsx

Extendify, version 3.1.5. 15 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.1.5/code/src/Agent/workflows/block-selector/components/BlockPatchingConfirm.jsx
- Raw: https://pluginprobe.com/plugins/extendify/3.1.5/raw/src/Agent/workflows/block-selector/components/BlockPatchingConfirm.jsx
- Modified: 2026-08-12T16:23:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.1.5/code/src/Agent/workflows/block-selector/components/BlockPatchingConfirm.jsx#L10-L20`.

```jsx
import { ReplaceImageConfirm } from '@agent/workflows/block-selector/components/ReplaceImageConfirm';
import { UpdateBlockConfirm } from '@agent/workflows/block-selector/components/UpdateBlockConfirm';

// The backend never mixes replace-image with other ops, so a pure image
// batch gets the dedicated generate/upload UI.
export const BlockPatchingConfirm = (props) => {
	const operations = props.inputs?.operations;
	const onlyImages =
		Array.isArray(operations) &&
		operations.length > 0 &&
		operations.every((operation) => operation?.op === 'replace-image');
	const Confirm = onlyImages ? ReplaceImageConfirm : UpdateBlockConfirm;
	return <Confirm {...props} />;
};

```
