|
<template>
|
|
<div class="game-over">
|
|
<h2><slot></slot></h2>
|
|
<p>Score: {{ score }}</p>
|
|
<p>Best streak: {{ streak }}</p>
|
|
<small>Click to restart</small>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
defineProps<{ score: number; streak: number }>();
|
|
</script>
|