mediawiki-skins-Vector/stories/utils.js

15 lines
469 B
JavaScript
Raw Normal View History

/**
* @param {string} msg
* @param {number} [height=200]
* @return {string}
*/
const placeholder = ( msg, height ) => {
return `<div style="width: 100%; height: ${height || 200}px; margin-bottom: 2px;
font-size: 12px; padding: 8px; box-sizing: border-box;
display: flex; background: #eee; align-items: center;justify-content: center;">${msg}</div>`;
};
const htmluserlangattributes = `dir="ltr" lang="en-GB"`;
export { placeholder, htmluserlangattributes };