export const VegaTooltipRuntimeMetricsPayloadDefinition = [
  {
    payloadKey: 'CONTENT_IS_EMPTY',
    payloadDescription: '@deprecated Specifies the content that is displayed inside the tooltip.',
    /**
     * The function checks if the `content` property of the `host` element is equal to 'undefined' or empty string.
     * If it is, the function will return `true`.
     *
     * @param {HTMLElement} host - The element to check
     * @returns {boolean} A boolean value
     */
    payloadValue: (host) => host.content === undefined || host.content === '',
  },
  {
    payloadKey: 'CONTENT_IS_NOT_EMPTY',
    payloadDescription: '@deprecated Specifies the content that is displayed inside the tooltip.',
    /**
     * The function checks if the `content` property of the `host` element is not equal to 'undefined' and empty string.
     * If it is, the function will return `true`.
     *
     * @param {HTMLElement} host - The element to check
     * @returns {boolean} A boolean value
     */
    payloadValue: (host) => host.content !== undefined && host.content !== '',
  },
];
