import { storiesOf } from "@storybook/react"; import { Stack, StackPage, useStackSwitch } from "@vivid-planet/comet-admin"; import * as React from "react"; import { Redirect, Route, Switch } from "react-router"; import StoryRouter from "storybook-react-router"; function Story() { const [StackSwitch, api] = useStackSwitch(); // demonstrate how to access the StackSwitchApi in the component where StackSwich is created (useStackSwitchApi doesn't work) return (