mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-10 21:26:18 +00:00
19 lines
570 B
Svelte
19 lines
570 B
Svelte
<script lang="ts">
|
|
import { goto } from '$app/navigation';
|
|
import { email } from '$data/api/settings';
|
|
import Banner from '$layout/Banners/Banner.svelte';
|
|
|
|
export let statusUrl: string | null = null;
|
|
|
|
const handleClick = () => statusUrl && goto(statusUrl);
|
|
</script>
|
|
|
|
<Banner
|
|
title="API service is currently down"
|
|
description="Some features of the site might be impacted. If this issue persists, reach out to mailto:{email()}"
|
|
buttonText={statusUrl ? 'View status' : undefined}
|
|
buttonOnClick={statusUrl ? handleClick : undefined}
|
|
level="caution"
|
|
permanent
|
|
/>
|