mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-22 05:45:14 +02:00
13 lines
388 B
Svelte
13 lines
388 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}
|