| 1 |
/** |
| 2 |
* Preview-only icons for the AI Actions half of the block. |
| 3 |
* |
| 4 |
* The frontend renders its own SVGs from the PHP registry |
| 5 |
* (Core\AIActions::icon), so these exist purely to make the editor placeholder |
| 6 |
* look like the real button — the action list is resolved per doc server-side and |
| 7 |
* is not knowable in the editor. |
| 8 |
*/ |
| 9 |
|
| 10 |
const stroke = { |
| 11 |
fill: "none", |
| 12 |
stroke: "currentColor", |
| 13 |
strokeWidth: 1.8, |
| 14 |
strokeLinecap: "round", |
| 15 |
strokeLinejoin: "round", |
| 16 |
}; |
| 17 |
|
| 18 |
export const copyIcon = () => ( |
| 19 |
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" {...stroke}> |
| 20 |
<rect x="9" y="9" width="12" height="12" rx="2" /> |
| 21 |
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" /> |
| 22 |
</svg> |
| 23 |
); |
| 24 |
|
| 25 |
export const caretIcon = () => ( |
| 26 |
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" {...stroke}> |
| 27 |
<path d="m6 9 6 6 6-6" /> |
| 28 |
</svg> |
| 29 |
); |
| 30 |
|