import * as React from "react"; import { Story, Meta } from "@storybook/react"; import { action } from "@storybook/addon-actions"; import { PageHeader, SpacingBox, PrimaryButton, SecondaryButton } from "../../"; import { PromoInline } from "../"; import PromoContent from "../components/PromoContent"; import { PromoProps } from "../types"; export default { title: "Feedback/PromoInline", component: PromoInline, subcomponents: { PromoContent }, argTypes: { bodyContent: { control: { type: "text" } }, primaryAction: { control: { disable: true } }, secondaryAction: { control: { disable: true } }, "data-cy": { control: { disable: true } } } } as Meta; const Template: Story = args => ( <> Some page content Some more page content ); export const Default = Template.bind({}); export const WithGraphic = Template.bind({}); WithGraphic.args = { graphicSrc: "http://placehold.it/350x150" }; export const WithActions = Template.bind({}); WithGraphic.args = { primaryAction: Primary Action, secondaryAction: Secondary Action };