mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-21 05:15:13 +02:00
17 lines
304 B
Svelte
17 lines
304 B
Svelte
<script lang="ts">
|
|
import { Progress } from '$lib/components/ui/progress/index.js';
|
|
import { onMount } from 'svelte';
|
|
|
|
let value = $state(0);
|
|
|
|
onMount(() => {
|
|
const interval = setInterval(() => {
|
|
value += 1;
|
|
}, 1);
|
|
|
|
return () => clearInterval(interval);
|
|
});
|
|
</script>
|
|
|
|
<Progress {value} />
|