import React from "react"; import AlertBanner, { AlertBannerProps } from "../AlertBanner"; import AlertBannerText from "../AlertBannerText/AlertBannerText"; import AlertBannerLink from "../AlertBannerLink/AlertBannerLink"; import AlertBannerButton from "../AlertBannerButton/AlertBannerButton"; import { createStoryMetaSettingsDecorator } from "../../../storybook/functions/createStoryMetaSettingsDecorator"; import "./AlertBanner.stories.scss"; import { Meta, StoryObj } from "@storybook/react"; const metaSettings = createStoryMetaSettingsDecorator({ component: AlertBanner, enumPropNamesArray: ["backgroundColor"] }); const alertBannerTemplate = (args: AlertBannerProps) => { return ( ); }; export default { title: "Feedback/AlertBanner", component: AlertBanner, argTypes: metaSettings.argTypes, decorators: metaSettings.decorators } satisfies Meta; export const Overview = { render: alertBannerTemplate.bind({}), name: "Overview", args: { bannerText: "Alert banner message", linkText: "this is a CTA", className: "monday-storybook-alert-banner_big-container" } }; type Story = StoryObj; export const Types: Story = { render: () => (
), name: "Types" }; export const AlertBannerWithButton: Story = { render: () => ( Lorem Ipsum ), name: "Alert Banner with button" }; export const AlertBannerWithLink: Story = { render: () => ( ), name: "Alert Banner with link" }; export const AlertBannerAsAnAnnouncement: Story = { render: () => ( ), name: "Alert banner as an announcement" }; export const AlertBannerAsAnOpportunityToUpgrade: Story = { render: () => ( ), name: "Alert banner as an opportunity to upgrade" }; export const OverflowText: Story = { render: () => ( ), name: "Overflow text" };