import shorthand from './util/shorthand.js';
/**
* Shorthand flex helper
* @function flex
* @param {object} value
* @param {number|string} [value.grow] flex grow value
* @param {number|string} [value.shrink] flex shrink value
* @param {number|string} [value.basis] flex basis value
* @return {object} Style object
* @example
* // A single property
* flex({grow: 'foo'});
* // → {
* // flexGrow: 'foo'
* // }
* @example
* // Multiple properties
* flex({grow: 'foo', shrink: 'bar'});
* // → {
* // flexGrow: 'foo',
* // flexShrink: 'bar'
* // }
*/
export default shorthand({
grow: 'flexGrow',
shrink: 'flexShrink',
basis: 'flexBasis'
});