Files
classroomio/src/lib/components/Buttons/VisitOrgSite.svelte
T

22 lines
563 B
Svelte
Raw Normal View History

2023-09-16 22:22:24 +01:00
<script lang="ts">
import PrimaryButton from '$lib/components/PrimaryButton/index.svelte';
import ArrowUpRightIcon from '$lib/components/Icons/ArrowTopRight.svelte';
import { currentOrg } from '$lib/utils/store/org';
import { isMobile } from '$lib/utils/store/useMobile';
2023-09-16 22:22:24 +01:00
export let className = '';
</script>
<a
href={`https://${$currentOrg.siteName}.classroomio.com`}
target="_blank"
class="{className} ml-2 hover:no-underline"
>
<PrimaryButton>
{#if !$isMobile}
View site
{/if}
2023-09-16 22:22:24 +01:00
<ArrowUpRightIcon />
</PrimaryButton>
</a>