summaryrefslogtreecommitdiff
path: root/src/components/pages/TodayPage.svelte
blob: 3d389328e375e710ecb18cdd12a6d1348d88a064 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!--
@component
Page component for the "Today Page"

This is required so that the correct layout of the cards within each `TodayCardShelf` 
can be computed at the page level, as the algorithm for stretching the correct cards
in each shelf requires knowledge of the previously-rendered shelf
-->
<script lang="ts">
    import type { TodayPage } from '@jet-app/app-store/api/models';

    import DefaultPage from '~/components/pages/DefaultPage.svelte';
    import { setTodayCardLayoutContext } from '~/context/today-card-layout';

    export let page: TodayPage;

    $: {
        setTodayCardLayoutContext(page);
    }
</script>

<DefaultPage {page} />