mediawiki-extensions-Popups/.storybook/helpers/createFlippedVariants.js
jdlrobson f97d29923b Add reference previews to storybook
Change-Id: I8e9e2db66fa94b33abcf7c9cbaff8defe5003ef6
2021-07-22 23:59:26 +00:00

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 } )}
`;
}