blob: a0dfe9c7e39ee968333d36a93539c0ad1dd0f620 (
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
30
31
|
<script lang="ts" context="module">
import type {
LargeHeroBreakout,
Shelf,
} from '@jet-app/app-store/api/models';
interface LargeHeroBreakoutShelf extends Shelf {
items: LargeHeroBreakout[];
}
export function isLargeHeroBreakoutShelf(
shelf: Shelf,
): shelf is LargeHeroBreakoutShelf {
const { contentType, items } = shelf;
return contentType === 'largeHeroBreakout' && Array.isArray(items);
}
</script>
<script lang="ts">
import ShelfItemLayout from '~/components/ShelfItemLayout.svelte';
import LargeHeroBreakoutItem from '~/components/jet/item/LargeHeroBreakoutItem.svelte';
import ShelfWrapper from '~/components/Shelf/Wrapper.svelte';
export let shelf: LargeHeroBreakoutShelf;
</script>
<ShelfWrapper {shelf}>
<ShelfItemLayout {shelf} gridType="Spotlight" let:item>
<LargeHeroBreakoutItem {item} />
</ShelfItemLayout>
</ShelfWrapper>
|