From 00d31df58d0ea68b11600d98ebf53150a2a0cb88 Mon Sep 17 00:00:00 2001
From: Ilion Beyst <ilion.beyst@gmail.com>
Date: Sun, 30 Oct 2022 14:37:38 +0100
Subject: design new BotMatch view

---
 .../src/lib/components/matches/BotMatchList.svelte    | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 web/pw-server/src/lib/components/matches/BotMatchList.svelte

(limited to 'web/pw-server/src/lib/components/matches/BotMatchList.svelte')

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>
-- 
cgit v1.2.3

