business logic, customer communication.
This commit is contained in:
15
lib/app/communications/lib.js
Normal file
15
lib/app/communications/lib.js
Normal file
@ -0,0 +1,15 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user