import { Meta, Story, ArgsTable, Canvas } from '@storybook/blocks';
import CartEditionPreview from '../CartEditionPreview';
import { cartMock, editionProps, editionPropsWithoutIconUrl } from '../../../../mocks/cart';
import * as CartEditionPreviewStories from './CartEditionPreview.stories';

<Meta of={CartEditionPreviewStories} />

# CartEditionPreview

<br />

## `CartEditionPreviews` are used to show the current edition added to cart as preview.

<br />

### Default

<Canvas>
  <Story of={CartEditionPreviewStories.Default} />
</Canvas>

### Placeholder image

<Canvas>
  <Story of={CartEditionPreviewStories.PlaceholderImage} />
</Canvas>

## Usage Example

```jsx
import CartEditionPreview from '@appdirect/sfb-theme-components/src/atoms/cart-edition-preview/CartEditionPreview';

<CartEditionPreview />
```

## Props

<ArgsTable of={CartEditionPreview} />
