2019-05-16 22:32:11 +00:00
|
|
|
#### Not yet installed
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
const abeSticker = { url: util.squareStickerObjectUrl, packId: 'abe' };
|
|
|
|
|
|
|
|
const pack = {
|
|
|
|
id: 'foo',
|
|
|
|
cover: abeSticker,
|
|
|
|
title: 'Foo',
|
|
|
|
isBlessed: true,
|
|
|
|
author: 'Foo McBarrington',
|
2019-05-24 01:27:42 +00:00
|
|
|
status: 'downloaded',
|
2019-05-16 22:32:11 +00:00
|
|
|
stickers: Array(101)
|
|
|
|
.fill(0)
|
|
|
|
.map((n, id) => ({ ...abeSticker, id })),
|
|
|
|
};
|
|
|
|
|
|
|
|
<util.ConversationContext theme={util.theme}>
|
|
|
|
<StickerPreviewModal
|
|
|
|
onClose={() => console.log('onClose')}
|
|
|
|
installStickerPack={(...args) => console.log('installStickerPack', ...args)}
|
|
|
|
uninstallStickerPack={(...args) =>
|
|
|
|
console.log('uninstallStickerPack', ...args)
|
|
|
|
}
|
|
|
|
i18n={util.i18n}
|
|
|
|
pack={pack}
|
|
|
|
/>
|
|
|
|
</util.ConversationContext>;
|
|
|
|
```
|