blob: 17e8443232e1737fd2e6d4d5eaeb9503ee9611ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<script lang="ts">
import { offer } from "../../network/transfer/share";
export let token: string;
async function accept() {
const transfer = await offer(token);
}
function decline() {}
</script>
<div class="container">
<span>{token}</span>
<div class="buttons">
<button on:click={accept}>Accept</button>
<button on:click={decline}>X</button>
</div>
</div>
<style>
.container {
display: flex;
justify-content: space-between;
align-items: center;
}
.buttons {
display: flex;
}
</style>
|