]> git.r.bdr.sh - rbdr/generador-de-insultos/blob - src/lib/components/new_insult.svelte
Port to svelte
[rbdr/generador-de-insultos] / src / lib / components / new_insult.svelte
1 <script>
2 import { getInsult } from '$lib/stores/insults';
3 import { goto } from '$app/navigation';
4
5 $: insult = getInsult();
6
7 $: {
8 if ($insult) {
9 goto(`/${$insult}`);
10 }
11 }
12 </script>
13
14 <article>
15 <main>
16 Insultando...
17 </main>
18 </article>