mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-29 03:45:15 +00:00
20 lines
420 B
JavaScript
20 lines
420 B
JavaScript
/**
|
|
* @typedef {Object} SpacerProps
|
|
* @property {string} space
|
|
*/
|
|
|
|
/**
|
|
* An empty element to add spacing manually.
|
|
* @param {Document} document
|
|
* @param {HTMLElement} root
|
|
* @param {SpacerProps} props
|
|
* @returns {void}
|
|
*/
|
|
function Spacer(document, root, props) {
|
|
const spacer = document.createElement('div');
|
|
spacer.style.paddingBottom = props.space;
|
|
root.appendChild(spacer);
|
|
}
|
|
|
|
module.exports = Spacer;
|