import React from "react"; import OutfitCanvas, { OutfitCanvasImage, OutfitCanvasMovie, } from "../app/components/OutfitCanvas"; export default { title: "Dress to Impress/OutfitCanvas", component: OutfitCanvas, argTypes: { paused: { name: "Paused", }, pet: { name: "Pet", control: { type: "radio", options: ["None", "Blue Acara"], }, }, items: { name: "Items", control: { type: "multi-select", options: ["Bubbles In Water Foreground"], }, }, }, }; // NOTE: We don't bother with assetProxy here, because we only run Storybook // locally, and localhost isn't subject to the same mixed content rules. // So this is noticeably faster! const Template = (args) => ( {args.pet === "Blue Acara" && ( <> )} {args.items.includes("Bubbles In Water Foreground") && ( )} ); export const BlueAcara = Template.bind({}); BlueAcara.args = { pet: "Blue Acara", items: [], paused: false, }; export const BubblesOnWaterForeground = Template.bind({}); BubblesOnWaterForeground.args = { pet: "None", items: ["Bubbles In Water Foreground"], paused: false, }; export const BlueAcaraWithForeground = Template.bind({}); BlueAcaraWithForeground.args = { pet: "Blue Acara", items: ["Bubbles In Water Foreground"], paused: false, };