manager.mjs (586B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 /** This file handles registering the Storybook addon */ 6 7 import { addons, types } from "@storybook/manager-api"; 8 import { ADDON_ID, TOOL_ID } from "../constants.mjs"; 9 import { StatusIndicator } from "../StatusIndicator.jsx"; 10 11 addons.register(ADDON_ID, () => { 12 addons.add(TOOL_ID, { 13 type: types.TOOL, 14 title: "Pseudo Localization", 15 render: StatusIndicator, 16 }); 17 });