mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-23 01:05:39 +02:00
14 lines
352 B
Svelte
14 lines
352 B
Svelte
<script lang="ts">
|
|
import { getContext } from 'svelte';
|
|
import type { User } from '$lib/types';
|
|
|
|
const user: () => User = 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}
|