@shopgate/pwa-common
Version:
Common library for the Shopgate Connect PWA.
5 lines • 415 B
JavaScript
import{css}from'glamor';/**
* Creates a class name for the flex-wrap property
* @param {boolean} [value=false] TRUE for 'wrap', FALSE for 'nowrap'
* @return {string} The class name
*/export var wrap=function wrap(){var value=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;return css({flexWrap:value?'wrap':'nowrap'}).toString();};export default css({display:'flex',minWidth:'100%'}).toString();