You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
476 B
Markdown
31 lines
476 B
Markdown
7 years ago
|
## With image
|
||
|
|
||
|
```jsx
|
||
|
const message = {
|
||
|
id: '1',
|
||
|
objectURL: 'https://placekitten.com/76/67',
|
||
|
attachments: [
|
||
|
{
|
||
|
fileName: 'foo.jpg',
|
||
|
contentType: 'application/json',
|
||
|
},
|
||
|
],
|
||
|
};
|
||
|
<MediaGridItem i18n={util.i18n} message={message} />;
|
||
|
```
|
||
|
|
||
|
## Without image
|
||
|
|
||
|
```jsx
|
||
|
const message = {
|
||
|
id: '1',
|
||
|
attachments: [
|
||
|
{
|
||
|
fileName: 'foo.jpg',
|
||
|
contentType: 'application/json',
|
||
|
},
|
||
|
],
|
||
|
};
|
||
|
<MediaGridItem i18n={util.i18n} message={message} />;
|
||
|
```
|