mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-07 17:18:13 -07:00
15 lines
325 B
JavaScript
15 lines
325 B
JavaScript
/**
|
|
* @param {HTMLElement} parent
|
|
* @param {string} group
|
|
* @param {Node[]} children
|
|
*/
|
|
export function appendPane(parent, group, children) {
|
|
if (!children.length) return;
|
|
|
|
const section = document.createElement("section");
|
|
|
|
section.dataset.group = group;
|
|
section.append(...children);
|
|
parent.append(section);
|
|
}
|