blob: f7b1316d8abbef7b5d1a92d3ad5fa690d436cb02 (
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
|
<script lang="ts" context="module">
import type { ImageLockup, Shelf } from '@jet-app/app-store/api/models';
interface MediumImageLockupShelf extends Shelf {
items: ImageLockup[];
}
export function isMediumImageLockupShelf(
shelf: Shelf,
): shelf is MediumImageLockupShelf {
const { contentType, items } = shelf;
return contentType === 'mediumImageLockup' && Array.isArray(items);
}
</script>
<script lang="ts">
import ShelfItemLayout from '~/components/ShelfItemLayout.svelte';
import MediumImageLockupItem from '~/components/jet/item/MediumImageLockupItem.svelte';
import ShelfWrapper from '~/components/Shelf/Wrapper.svelte';
export let shelf: MediumImageLockupShelf;
</script>
<ShelfWrapper {shelf}>
<ShelfItemLayout {shelf} gridType="B" let:item>
<MediumImageLockupItem {item} />
</ShelfItemLayout>
</ShelfWrapper>
|