mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-11 15:27:04 +00:00
f97d29923b
Change-Id: I8e9e2db66fa94b33abcf7c9cbaff8defe5003ef6
17 lines
481 B
JavaScript
17 lines
481 B
JavaScript
import createPopup from './createPopup';
|
|
|
|
/**
|
|
* Creates the 4 variants for a preview.
|
|
*
|
|
* @param {ext.popups.PreviewModel} model
|
|
* @return {string}
|
|
*/
|
|
export default function createFlippedVariants( model ) {
|
|
return `
|
|
${createPopup( model, { flippedX: false, flippedY: false } )}
|
|
${createPopup( model, { flippedX: true, flippedY: false } )}
|
|
${createPopup( model, { flippedX: false, flippedY: true } )}
|
|
${createPopup( model, { flippedX: true, flippedY: true } )}
|
|
`;
|
|
}
|