"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const manager_api_1 = require("storybook/manager-api");
const BackgroundPanel_1 = __importDefault(require("./BackgroundPanel"));
const constants_1 = require("./constants");
manager_api_1.addons.register(constants_1.ADDON_ID, (api) => {
    const channel = manager_api_1.addons.getChannel();
    manager_api_1.addons.add(constants_1.PANEL_ID, {
        type: manager_api_1.types.PANEL,
        title: 'Backgrounds',
        render: ({ active }) => (0, jsx_runtime_1.jsx)(BackgroundPanel_1.default, { channel: channel, api: api, active: active }),
        paramKey: constants_1.PARAM_KEY,
    });
});
