#### Default ```jsx const sticker1 = { id: 1, url: util.kitten164ObjectUrl, packId: 'foo' }; const sticker2 = { id: 2, url: util.kitten264ObjectUrl, packId: 'bar' }; const sticker3 = { id: 3, url: util.kitten364ObjectUrl, packId: 'baz' }; const packs = [ { id: 'foo', cover: sticker1, title: 'Foo', author: 'Foo McBarrington', stickers: Array(101) .fill(0) .map((n, id) => ({ ...sticker1, id })), }, { id: 'bar', cover: sticker2, title: 'Baz', author: 'Foo McBarrington (Official)', stickers: Array(101) .fill(0) .map((n, id) => ({ ...sticker2, id })), }, { id: 'baz', cover: sticker3, title: 'Third', author: 'Foo McBarrington', stickers: Array(101) .fill(0) .map((n, id) => ({ ...sticker3, id })), }, ]; const receivedPacks = packs.map(p => ({ ...p, status: 'advertised' })); const installedPacks = packs.map(p => ({ ...p, status: 'installed' })); const blessedPacks = packs.map(p => ({ ...p, status: 'advertised', isBlessed: true, })); console.log('installStickerPack', id)} uninstallStickerPack={id => console.log('uninstallStickerPack', id)} /> ; ``` #### No Advertised Packs ```jsx const sticker1 = { id: 1, url: util.kitten164ObjectUrl, packId: 'foo' }; const sticker2 = { id: 2, url: util.kitten264ObjectUrl, packId: 'bar' }; const sticker3 = { id: 3, url: util.kitten364ObjectUrl, packId: 'baz' }; const packs = [ { id: 'foo', cover: sticker1, title: 'Foo', author: 'Foo McBarrington', stickers: Array(101) .fill(0) .map((n, id) => ({ ...sticker1, id })), }, { id: 'bar', cover: sticker2, title: 'Baz', author: 'Foo McBarrington', stickers: Array(101) .fill(0) .map((n, id) => ({ ...sticker2, id })), }, { id: 'baz', cover: sticker3, title: 'Baz', author: 'Foo McBarrington', stickers: Array(101) .fill(0) .map((n, id) => ({ ...sticker3, id })), }, ]; const installedPacks = packs.map(p => ({ ...p, status: 'installed' })); const noPacks = []; console.log('installStickerPack', id)} uninstallStickerPack={id => console.log('uninstallStickerPack', id)} /> ; ``` #### No Installed Packs ```jsx const sticker1 = { id: 1, url: util.kitten164ObjectUrl, packId: 'foo' }; const sticker2 = { id: 2, url: util.kitten264ObjectUrl, packId: 'bar' }; const sticker3 = { id: 3, url: util.kitten364ObjectUrl, packId: 'baz' }; const packs = [ { id: 'foo', cover: sticker1, title: 'Foo', author: 'Foo McBarrington', stickers: Array(101) .fill(0) .map((n, id) => ({ ...sticker1, id })), }, { id: 'bar', cover: sticker2, title: 'Baz', author: 'Foo McBarrington', stickers: Array(101) .fill(0) .map((n, id) => ({ ...sticker2, id })), }, { id: 'baz', cover: sticker3, title: 'Baz', author: 'Foo McBarrington', stickers: Array(101) .fill(0) .map((n, id) => ({ ...sticker3, id })), }, ]; const receivedPacks = packs.map(p => ({ ...p, status: 'installed' })); const noPacks = []; console.log('installStickerPack', id)} /> ; ``` #### No Packs at All ```jsx const noPacks = [];
console.log('installStickerPack', id)} uninstallStickerPack={id => console.log('uninstallStickerPack', id)} />
; ```