PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.5
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.5
4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 All 203 releases
betterdocs / react-src / gutenberg / blocks / reading-time / src / aiIcons.js

aiIcons.js in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.9.5, at react-src/gutenberg/blocks/reading-time/src/aiIcons.js

30 lines 940 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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