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

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

/** @module */

/**
 * Reusable object to use in `propTypes` for a `feature` prop.
 * @type {Object}
 * @category templating
 */
const featureShape = {
  /**
   * The feature id
   */
  id: PropTypes.string,
  /**
   * The tile title
   */
  title: PropTypes.string,
  /**
   * Short summary of the feature
   */
  description: PropTypes.string,
  contentGroup: PropTypes.string,
  /**
   * Total likes for the content
   */
  likesCount: PropTypes.number,
  _source: PropTypes.shape({
    actionType: PropTypes.string.isRequired,
  }),
  /**
   * The leading image on the tile
   */
  image: PropTypes.shape(imageShape),
  link: PropTypes.string,
  slug: PropTypes.string,
  palette: PropTypes.string,
};

export default featureShape;