From dc4db405d2991d3ec6a114f3b08d3fccd057d3ee Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Thu, 13 Feb 2025 17:52:16 +0100
Subject: frontend: Migrate to Svelte 5

---
 frontend/src/lib/statistics/Stat.svelte | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

(limited to 'frontend/src/lib/statistics/Stat.svelte')

diff --git a/frontend/src/lib/statistics/Stat.svelte b/frontend/src/lib/statistics/Stat.svelte
index c657526..7e03e09 100644
--- a/frontend/src/lib/statistics/Stat.svelte
+++ b/frontend/src/lib/statistics/Stat.svelte
@@ -1,8 +1,12 @@
 <script lang="ts">
-	export let title: string;
-	export let value: number;
-	export let precision = 0;
-	export let unit = '';
+	interface Props {
+		title: string;
+		value: number;
+		precision?: number;
+		unit?: string;
+	}
+
+	let { title, value, precision = 0, unit = '' }: Props = $props();
 
 	function format(value: number) {
 		if (Number.isNaN(value) || !Number.isFinite(value)) {
-- 
cgit v1.2.3-2-gb3c3

