mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-06-30 14:08:34 -07:00
global: private xpub support part 2
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { createElement } from "../dom.js";
|
||||
|
||||
/**
|
||||
* @typedef {Object} EmptyOptions
|
||||
* @property {() => void} onAdd
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param {EmptyOptions} options
|
||||
*/
|
||||
export function createEmpty(options) {
|
||||
const empty = createElement("section", "wallets__empty");
|
||||
const text = document.createElement("p");
|
||||
const button = document.createElement("button");
|
||||
|
||||
text.append("No wallet imported yet");
|
||||
button.type = "button";
|
||||
button.append("Add wallet");
|
||||
button.addEventListener("click", options.onAdd);
|
||||
empty.append(text, button);
|
||||
|
||||
return empty;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
main.wallets {
|
||||
.wallets__empty {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
place-content: center;
|
||||
min-height: 16rem;
|
||||
text-align: center;
|
||||
|
||||
h2,
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user