blob: 095acf2ecbedb91712069b3114d383060a435836 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<script lang="ts" context="module">
import type { AppShowcase, Shelf } from '@jet-app/app-store/api/models';
interface AppShowcaseShelf extends Shelf {
contentType: 'appShowcase';
items: [AppShowcase];
}
export function isAppShowcaseShelf(
shelf: Shelf,
): shelf is AppShowcaseShelf {
return (
shelf.contentType === 'appShowcase' && Array.isArray(shelf.items)
);
}
</script>
<script lang="ts">
import ShelfWrapper from '~/components/Shelf/Wrapper.svelte';
import SmallLockup from '~/components/jet/item/SmallLockupItem.svelte';
export let shelf: AppShowcaseShelf;
$: item = shelf.items[0];
</script>
<ShelfWrapper {shelf} withTopMargin centered>
<SmallLockup item={item.lockup} />
</ShelfWrapper>
|