/** * External dependencies */ import { __, _x } from '@wordpress/i18n'; import { G, Path, SVG } from '@wordpress/components'; /** * Internal dependencies */ import edit from './edit'; import './style.scss'; export const name = 'related-posts'; export const settings = { title: __( 'Related Posts', 'jetpack' ), icon: ( ), category: 'jetpack', keywords: [ _x( 'Similar content', 'block search term', 'jetpack' ), _x( 'Linked', 'block search term', 'jetpack' ), _x( 'Connected', 'block search term', 'jetpack' ), ], attributes: { postLayout: { type: 'string', default: 'grid', }, displayDate: { type: 'boolean', default: true, }, displayThumbnails: { type: 'boolean', default: false, }, displayContext: { type: 'boolean', default: false, }, postsToShow: { type: 'number', default: 3, }, }, supports: { html: false, multiple: false, reusable: false, }, transforms: { from: [ { type: 'shortcode', tag: 'jetpack-related-posts', }, ], }, edit, save: () => null, };