mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-24 21:13:05 +00:00
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 } )}
|
||
|
`;
|
||
|
}
|