PluralKit/src/lib/system/Main.svelte

26 lines
640 B
Svelte
Raw Normal View History

2021-12-11 14:57:20 +00:00
<script lang="ts">
import { Card, CardBody } from 'sveltestrap';
import CardsHeader from '../CardsHeader.svelte';
2021-12-11 17:45:08 +00:00
import SystemBody from './Body.svelte';
import SystemPrivacy from './Privacy.svelte';
2021-12-11 14:57:20 +00:00
export let user;
2021-12-11 17:41:21 +00:00
export let isPublic = true;
2021-12-11 14:57:20 +00:00
2021-12-11 17:41:21 +00:00
let editMode = false;
2021-12-11 14:57:20 +00:00
</script>
2021-12-11 17:41:21 +00:00
<Card class="mb-4">
2021-12-11 14:57:20 +00:00
<CardsHeader bind:item={user}/>
<CardBody style="border-left: 4px solid #{user.color}">
{#if !editMode}
<SystemBody bind:user={user} bind:editMode={editMode}/>
{:else}
hehe
{/if}
</CardBody>
2021-12-11 17:41:21 +00:00
</Card>
{#if !isPublic}
<SystemPrivacy bind:user={user} />
{/if}