aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/lib/components/matches/BotMatchList.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'web/pw-server/src/lib/components/matches/BotMatchList.svelte')
-rw-r--r--web/pw-server/src/lib/components/matches/BotMatchList.svelte19
1 files changed, 19 insertions, 0 deletions
diff --git a/web/pw-server/src/lib/components/matches/BotMatchList.svelte b/web/pw-server/src/lib/components/matches/BotMatchList.svelte
new file mode 100644
index 0000000..959cd07
--- /dev/null
+++ b/web/pw-server/src/lib/components/matches/BotMatchList.svelte
@@ -0,0 +1,19 @@
+<script lang="ts">
+ import type { BotMatch } from "$lib/matches";
+ import BotMatchCard from "./BotMatchCard.svelte";
+
+ export let botMatches: BotMatch[];
+
+ function match_url(match: object) {
+ return `/matches/${match["id"]}`;
+ }
+</script>
+
+<div>
+ {#each botMatches as botMatch}
+ <BotMatchCard {botMatch} />
+ {/each}
+</div>
+
+<style lang="scss">
+</style>