boredgame/src/routes/search/+page.svelte

17 lines
440 B
Svelte
Raw Normal View History

<script lang="ts">
import { superForm } from 'sveltekit-superforms/client';
import { gameStore } from '$lib/stores/gameSearchStore';
import TextSearch from '$lib/components/search/textSearch/index.svelte';
export let data;
$: if (data?.searchData?.games) {
gameStore.removeAll();
gameStore.addAll(data?.searchData?.games);
}
</script>
<div class="game-search">
2023-05-21 05:18:04 +00:00
<TextSearch showButton advancedSearch data={data.form} />
</div>