global: private xpub support part 2

This commit is contained in:
nym21
2026-06-17 11:25:42 +02:00
parent 0c7861071d
commit 43df9e098c
68 changed files with 1836 additions and 1653 deletions
+23
View File
@@ -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;
}
+14
View File
@@ -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;
}
}
}