export const VegaButtonLinkRuntimeMetricsPayloadDefinition = [
  {
    payloadKey: 'EVENTFUL_IS_TRUE',
    payloadDescription: '@deprecated Specifies whether the button link will emit a vegaClick event when clicked. If set to true, the event will be emitted.',
    /**
     * The function checks if the `eventful` property of the `host` element is equal to 'true'.
     * If it is, the function will return `true`.
     *
     * @param {HTMLElement} host - The element to check
     * @returns {boolean} A boolean value
     */
    payloadValue: (host) => host.eventful === true,
  },
  {
    payloadKey: 'EVENTFUL_IS_FALSE',
    payloadDescription: '@deprecated Specifies whether the button link will emit a vegaClick event when clicked. If set to false, the component will function as a regular link to another page or URL, and no events will be emitted.',
    /**
     * The function checks if the `eventful` property of the `host` element is equal to 'false'.
     * If it is, the function will return `true`.
     *
     * @param {HTMLElement} host - The element to check
     * @returns {boolean} A boolean value
     */
    payloadValue: (host) => host.eventful === false,
  },
];
