|
| 1 | +import pickBy from "lodash/pickBy" |
| 2 | +import type { Meta, StoryObj } from "@storybook/react" |
| 3 | +import { fn } from "@storybook/test" |
| 4 | + |
| 5 | +import { viewportModes } from "../../../../.storybook/modes" |
| 6 | +import { Explanation as ExplanationComponent } from "../Explanation" |
| 7 | + |
| 8 | +const meta = { |
| 9 | + title: "Molecules / Display Content / Simulator / Explanation", |
| 10 | + component: ExplanationComponent, |
| 11 | + parameters: { |
| 12 | + chromatic: { |
| 13 | + modes: pickBy(viewportModes, (arg) => |
| 14 | + ["2xl", "base"].includes(arg.viewport) |
| 15 | + ), |
| 16 | + }, |
| 17 | + }, |
| 18 | +} satisfies Meta<typeof ExplanationComponent> |
| 19 | + |
| 20 | +export default meta |
| 21 | + |
| 22 | +export const Explanation: StoryObj<typeof meta> = { |
| 23 | + args: { |
| 24 | + explanation: { |
| 25 | + header: "Begin your journey by downloading a wallet", |
| 26 | + description: ( |
| 27 | + <div className="[&_p]:mb-4"> |
| 28 | + <p>To get started, you'll need to download a wallet app.</p> |
| 29 | + <p> |
| 30 | + Most people use mobile apps, but desktop apps and browser extensions |
| 31 | + are also available. |
| 32 | + </p> |
| 33 | + <p> |
| 34 | + Let's set up a mobile wallet. Click "Install a |
| 35 | + wallet" to get started. |
| 36 | + </p> |
| 37 | + </div> |
| 38 | + ), |
| 39 | + }, |
| 40 | + nav: { |
| 41 | + regressStepper: fn(), |
| 42 | + progressStepper: fn(), |
| 43 | + step: 0, |
| 44 | + totalSteps: 3, |
| 45 | + openPath: fn(), |
| 46 | + }, |
| 47 | + nextPathSummary: { Icon: fn(), primaryText: "" }, |
| 48 | + nextPathId: "send-receive", |
| 49 | + finalCtaLink: { href: "#", label: "Next Step", isPrimary: true }, |
| 50 | + }, |
| 51 | + render: (args) => <ExplanationComponent {...args} />, |
| 52 | +} |
0 commit comments