2026-04-12 08:58:41 +01:00
|
|
|
<script lang="ts">
|
|
|
|
|
import { PageRestricted } from '$features/ui';
|
|
|
|
|
import { currentOrg } from '$lib/utils/store/org';
|
|
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
|
children?: import('svelte').Snippet;
|
|
|
|
|
data: {
|
|
|
|
|
isOrgSite: boolean;
|
2026-04-27 11:40:38 +01:00
|
|
|
org: import('$features/app/types').AccountOrg | null;
|
2026-04-12 08:58:41 +01:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let { children, data }: Props = $props();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
{#if data.org?.isRestricted || $currentOrg.isRestricted}
|
|
|
|
|
<PageRestricted />
|
|
|
|
|
{:else}
|
|
|
|
|
{@render children?.()}
|
|
|
|
|
{/if}
|