1 import type { Meta, StoryObj } from "@storybook/react"
2 import * as React from "react"
3 import { InlineTip } from "./inline-tip"
4
5 const meta: Meta<typeof InlineTip> = {
6 title: "Components/InlineTip",
7 component: InlineTip,
8 parameters: {
9 layout: "centered",
10 },
11 render: (args) => {
12 return (
13 <div className="flex max-w-md">
14 <InlineTip {...args} />
15 </div>
16 )
17 },
18 }
19
20 export default meta
21
22 type Story = StoryObj<typeof InlineTip>
23
24 export const Info: Story = {
25 args: {
26 variant: "info",
27 label: "Info",
28 children:
29 "You can always install the storefront at a later point. Medusa is a headless backend, so it operates without a storefront by default. You can connect any storefront to it. The Next.js Starter storefront is a good option to use, but you can also build your own storefront later on.",
30 },
31 }
32
33 export const Warning: Story = {
34 args: {
35 variant: "warning",
36 label: "Warning",
37 children:
38 "If you have multiple storage plugins configured, the last plugin declared in the medusa-config.js file will be used.",
39 },
40 }
41
42 export const Error: Story = {
43 args: {
44 variant: "error",
45 label: "Don'ts",
46 children:
47 "Don’t use data models if you want to store simple key-value pairs related to a Medusa data model. Instead, use the metadata field that modles have, which is an object of custom key-value pairs.",
48 },
49 }
50
51 export const Success: Story = {
52 args: {
53 variant: "success",
54 label: "Do's",
55 children:
56 "Use data models when you want to store data related to your customization in the database.",
57 },
58 }