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 / components / partials / SubCategoryCounts.js

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

26 lines 830 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __, _n, sprintf } from "@wordpress/i18n";
2
3 const SubCategoryCounts = ({attributes, subcategoriesCount, docsCount}) => {
4 return (
5 <div data-count={docsCount} className="betterdocs-sub-category-items-counts">
6 {subcategoriesCount != 0 && (
7 <span>
8 {sprintf(
9 _n('%d Sub Category', '%d Sub Categories', subcategoriesCount, 'betterdocs'),
10 subcategoriesCount
11 )}
12 </span>
13 )}
14 {subcategoriesCount != 0 && <span>|</span>}
15 <span>
16 {sprintf(
17 _n('%d doc', '%d docs', docsCount, 'betterdocs'),
18 docsCount
19 )}
20 </span>
21 </div>
22 );
23 };
24
25 export default SubCategoryCounts;
26