diff options
Diffstat (limited to 'plugins/jetpack/extensions/blocks/tiled-gallery/deprecated/v1/save.js')
-rw-r--r-- | plugins/jetpack/extensions/blocks/tiled-gallery/deprecated/v1/save.js | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/plugins/jetpack/extensions/blocks/tiled-gallery/deprecated/v1/save.js b/plugins/jetpack/extensions/blocks/tiled-gallery/deprecated/v1/save.js deleted file mode 100644 index 2a157a30..00000000 --- a/plugins/jetpack/extensions/blocks/tiled-gallery/deprecated/v1/save.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Internal dependencies - */ -import Layout from './layout'; -import { getActiveStyleName } from '../../../../shared/block-styles'; -import { LAYOUT_STYLES } from './constants'; - -export function defaultColumnsNumber( attributes ) { - return Math.min( 3, attributes.images.length ); -} - -export default function TiledGallerySave( { attributes } ) { - const { images } = attributes; - - if ( ! images.length ) { - return null; - } - - const { align, className, columns = defaultColumnsNumber( attributes ), linkTo } = attributes; - - return ( - <Layout - align={ align } - className={ className } - columns={ columns } - images={ images } - layoutStyle={ getActiveStyleName( LAYOUT_STYLES, className ) } - linkTo={ linkTo } - /> - ); -} |