blob: 9af9ba0a828081f27e455b9b7a7d49bd0d529556 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import { addons, types } from "storybook/manager-api"
import { ThemeTool } from "./theme-tool"
addons.register("opencode/theme-toggle", () => {
addons.add("opencode/theme-toggle/tool", {
type: types.TOOL,
title: "Theme",
match: ({ viewMode }) => viewMode === "story" || viewMode === "docs",
render: ThemeTool,
})
})
|