import { Meta, Story, ArgsTable, Canvas } from '@storybook/addon-docs/blocks';
import CartEditionPreview from '../CartEditionPreview';
import { cartMock } 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 {...cartMock.items[0].itemDetails} 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} />
