import { Canvas, Meta, ArgTypes } from '@storybook/blocks';
import { ThemeProvider } from 'styled-components';

import MessageAttachment from './';
import { lightTheme } from '../../../../theme';
import { GlobalStyles } from '../../../../theme/GlobalStyles';
import * as AttachmentStories from './Attachment.stories.tsx';

<Meta of={AttachmentStories} />

# MessageAttachment

The MessageAttachment component displays basic information about attachment.

## Importing

```javascript
import { MessageAttachment } from 'amazon-chime-sdk-component-library-react';
```

## Example

<Canvas style={{ margin: 'auto' }}>
  <ThemeProvider theme={lightTheme}>
    <GlobalStyles />
    <MessageAttachment
      name="FileName.txt"
      downloadUrl="https://download.com/url.txt"
      size="23KB"
    />
  </ThemeProvider>
</Canvas>

```jsx
<MessageAttachment
  name="FileName.txt"
  downloadUrl="https://download.com/url.txt"
  size="23KB"
/>
```

## Props

<ArgTypes of={MessageAttachment} />
