summaryrefslogtreecommitdiff
path: root/src/components/jet/item/PrivacyHeaderItem.svelte
blob: f9611a69d8ad041f48150108d72b256a58592cd7 (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
32
33
34
35
36
37
38
39
40
41
<script lang="ts">
    import type { PrivacyHeader } from '@jet-app/app-store/api/models';
    import LinkableTextItem from '~/components/jet/item/LinkableTextItem.svelte';

    export let item: PrivacyHeader;
</script>

<div>
    <p>
        <LinkableTextItem item={item.bodyText} />
    </p>

    {#if item.supplementaryItems.length}
        <div class="supplementary-items-container">
            {#each item.supplementaryItems as supItem}
                <p>
                    <LinkableTextItem item={supItem.bodyText} />
                </p>
            {/each}
        </div>
    {/if}
</div>

<style>
    p {
        font: var(--body-tall);
    }

    p :global(a) {
        color: var(--keyColor);
    }

    .supplementary-items-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 20px 0 0;
        margin-top: 20px;
        border-top: 1px solid var(--systemGray4);
    }
</style>