/* istanbul ignore file -- story-only fixtures */ import type { Meta, StoryObj } from "@storybook/react"; import { AudioProvider } from "../../provider/audio-provider.js"; import { makeFakeAudioContext, makeFakePlugin } from "../../test-utils.js"; import { PluginLoader } from "./plugin-loader.js"; const meta = { title: "react-audio/PluginLoader", component: PluginLoader, } satisfies Meta; export default meta; type Story = StoryObj; function Frame(props: { readonly children: React.ReactNode }) { return ( makeFakePlugin({ id: "demo-alpha" }), }, { pluginType: "demo-beta", factory: () => makeFakePlugin({ id: "demo-beta" }), }, ], }} >
{props.children}
); } export const Default: Story = { render: () => ( ), }; export const Interactive: Story = { render: () => ( console.log("created", t)} /> ), }; export const EdgeEmpty: Story = { render: () => (
), };