Source: app/util/proptypes/apiEntities/promotedSearchShape.js

import PropTypes from 'prop-types';
import imageShape from './image';

/** @module */

/**
 * Reusable object to use in `propTypes` for a `promotedSearch` prop.
 * @type {Object}
 * @category templating
 */
const promotedSearchShape = {
  /**
   * The id of the promoted item
   */
  id: PropTypes.string,
  /**
   * The tile title
   */
  title: PropTypes.string,

  /**
   * The image displayed on the tile
   */
  image: PropTypes.shape(imageShape),

  /**
   * The link that links to the promoted item
   */
  link: PropTypes.string,

  /**
   * Is the link internal?
   */
  isInternal: PropTypes.bool,
};

export default promotedSearchShape;