import { Meta, Story, ArgsTable, Canvas } from '@storybook/addon-docs/blocks';
import CartEditionPreview from '../CartEditionPreview';
import { cartMock, editionProps, editionPropsWithoutIconUrl } from '../../../../mocks/cart';


<Meta title="Atoms/Cart Edition Preview" component={CartEditionPreview} />

# CartEditionPreview
<br />

## `CartEditionPreviews` are used to show the current edition added to cart as preview.
<br />

### Default
<Canvas>
    <Story name="Default">
        <CartEditionPreview {...editionProps} i18n={cartMock.i18n} />
    </Story>
</Canvas>

### Placeholder image
<Canvas>
    <Story name="Placeholder image">
        <CartEditionPreview {...editionPropsWithoutIconUrl} i18n={cartMock.i18n} />
    </Story>
</Canvas>


## Usage Example

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

<CartEditionPreview />
```
## Props

<ArgsTable of={CartEditionPreview} />
