# betterdocs/4.9.5/react-src/gutenberg/blocks/reading-time/src/index.js

BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ &amp; Chatbot, version 4.9.5. 38 lines.

- Page: https://pluginprobe.com/plugins/betterdocs/4.9.5/code/react-src/gutenberg/blocks/reading-time/src/index.js
- Raw: https://pluginprobe.com/plugins/betterdocs/4.9.5/raw/react-src/gutenberg/blocks/reading-time/src/index.js
- Modified: 2026-10-12T10:07:14+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/betterdocs/4.9.5/code/react-src/gutenberg/blocks/reading-time/src/index.js#L10-L20`.

```javascript
import { __ } from "@wordpress/i18n";
import { registerBlockType } from "@wordpress/blocks";

// Lower-case, matching the file on disk: macOS resolves "./Edit" anyway, a
// case-sensitive filesystem does not.
import Edit from "./edit";
import attributes from "./attributes";
import icon from "./icon";


registerBlockType("betterdocs/reading-time", {
    title: __("Reading Time, Listen and AI Action", "betterdocs"),
    description: __(
        'The single-doc meta row: estimated reading time, a Listen button that reads the doc aloud, and a "Copy page" button that hands it to an AI assistant. Each part has its own switch.',
        "betterdocs",
    ),
    category: "betterdocs",
    attributes,
    icon,
    keywords: [
        __("better docs", "betterdocs"),
        __("reading time", "betterdocs"),
        __("time", "betterdocs"),
        __("ai", "betterdocs"),
        __("markdown", "betterdocs"),
        __("copy page", "betterdocs"),
        __("listen", "betterdocs"),
        __("audio", "betterdocs"),
        __("text to speech", "betterdocs"),
        __("accessibility", "betterdocs"),
    ],
    edit: Edit,
    save: () => null,
    example: {
        viewportWidth: 1200,
    },
});

```
