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 / admin / components / CreateDocTag.js

CreateDocTag.js in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.9.5, at react-src/admin/components/CreateDocTag.js

25 lines 663 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import React from "react";
2 import { __ } from "@wordpress/i18n";
3 import { IconPlus } from "~betterdocs/icons";
4 import { useDocTags } from "./DocTagsContext";
5
6 export default function CreateDocTag() {
7 const ctx = useDocTags();
8 if (!ctx) return null;
9
10 return (
11 <button
12 type="button"
13 className="admin-action-button"
14 onClick={() => ctx.openCreate()}
15 >
16 <span className="action-button-icon">
17 <IconPlus />
18 </span>
19 <span className="action-button-icon-text">
20 {__("Add New Tag", "betterdocs")}
21 </span>
22 </button>
23 );
24 }
25