import { h } from "@stencil/core";
export const HookStoryAddon = ({ story }, children) => {
  var _a;
  const hookStory = (_a = story.story.parameters) === null || _a === void 0 ? void 0 : _a.hookStory;
  if (!hookStory) {
    return children;
  }
  const randomInt = Math.round(Math.random() * 100000);
  const RandomTagName = "sqm-hook-story-container-" + randomInt;
  return (h(RandomTagName, null,
    h("sqm-hook-story-container", { hookStory: hookStory })));
};
export function createHookStory(hookStory) {
  const story = () => h("div", null);
  story.parameters = {
    hookStory,
  };
  return story;
}
