%PDF- %PDF-
Direktori : /home/tradesc/www/relax/wp-content/plugins/cartflows/modules/gutenberg/src/utils/ |
Current File : /home/tradesc/www/relax/wp-content/plugins/cartflows/modules/gutenberg/src/utils/Helpers.js |
/** * Get Image Sizes and return an array of Size. * * @param {Object} sizes - The sizes object. * @return {Object} sizeArr - The sizeArr object. */ export function getImageSize( sizes ) { const sizeArr = []; for ( const size in sizes ) { if ( sizes.hasOwnProperty( size ) ) { const p = { value: size, label: size }; sizeArr.push( p ); } } return sizeArr; } export function getBlockPrefix() { return 'wcfb/'; }