15 lines
381 B
JavaScript

import { createElement, createElementInit } from "../../functions";
function createBox(title, functions) {
const container = createElement('div', 'comm');
const header = createElement('div', 'title-bar',
title,
createElement('div', 'title-functions', ...functions)
);
container.appendChild(header);
return container;
}
export {
createBox
}