mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-06 01:39:04 +02:00
22 lines
411 B
Svelte
22 lines
411 B
Svelte
<script lang="ts">
|
|
import { m } from '$lib/paraglide/messages';
|
|
|
|
let {
|
|
hasAccess,
|
|
granted,
|
|
total
|
|
}: {
|
|
hasAccess: boolean;
|
|
granted: number;
|
|
total: number;
|
|
} = $props();
|
|
</script>
|
|
|
|
{#if !hasAccess}
|
|
<span class="text-muted-foreground text-sm">{m.no_access()}</span>
|
|
{:else}
|
|
<span class="text-sm">
|
|
{m.permissions_granted_count({ granted: String(granted), total: String(total) })}
|
|
</span>
|
|
{/if}
|