mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-24 09:45:43 +02:00
13 lines
386 B
Svelte
13 lines
386 B
Svelte
<script lang="ts">
|
|
import { getContext } from 'svelte';
|
|
import type {components} from "$lib/api/api";
|
|
const user: () => components["schemas"]["UserRead"] = getContext('user');
|
|
</script>
|
|
|
|
<span class="truncate font-semibold">{user().email}</span>
|
|
{#if user().is_superuser}
|
|
<span class="truncate text-xs">Administrator</span>
|
|
{:else}
|
|
<span class="truncate text-xs">User</span>
|
|
{/if}
|