PluralKit/src/lib/system/Main.svelte
2021-12-11 18:42:31 +01:00

26 lines
652 B
Svelte

<script lang="ts">
import { Card, CardBody } from 'sveltestrap';
import CardsHeader from '../CardsHeader.svelte';
import SystemBody from './SystemBody.svelte';
import SystemPrivacy from './SystemPrivacy.svelte';
export let user;
export let isPublic = true;
let editMode = false;
</script>
<Card class="mb-4">
<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>
</Card>
{#if !isPublic}
<SystemPrivacy bind:user={user} />
{/if}