import { Meta, moduleMetadata, Story } from "@storybook/angular"; import { I18nService } from "@bitwarden/common/abstractions/i18n.service"; import { I18nMockService } from "../utils/i18n-mock.service"; import { CalloutComponent } from "./callout.component"; export default { title: "Component Library/Callout", component: CalloutComponent, decorators: [ moduleMetadata({ providers: [ { provide: I18nService, useFactory: () => { return new I18nMockService({ warning: "Warning", error: "Error", }); }, }, ], }), ], args: { type: "warning", }, parameters: { design: { type: "figma", url: "https://www.figma.com/file/Zt3YSeb6E6lebAffrNLa0h/Tailwind-Component-Library?node-id=1881%3A17484", }, }, } as Meta; const Template: Story = (args: CalloutComponent) => ({ props: args, template: ` Content `, }); export const Success = Template.bind({}); Success.args = { type: "success", title: "Success", }; export const Info = Template.bind({}); Info.args = { type: "info", title: "Info", }; export const Warning = Template.bind({}); Warning.args = { type: "warning", }; export const Danger = Template.bind({}); Danger.args = { type: "danger", };