export const VegaProgressTrackerRuntimeMetricsPayloadDefinition = [
  {
    payloadKey: 'COMPLETED_STEP_ARRAY_IS_EMPTY',
    payloadDescription: '@deprecated Specifies an array of completed step titles for the Progress Tracker component.',
    /**
     * The function checks if the length of `completedStepArray` property of the `host` element is equal to '0'.
     * If it is, the function will return `true`.
     *
     * @param {HTMLElement} host - The element to check
     * @returns {boolean} A boolean value
     */
    payloadValue: (host) => host.completedStepArray.length === 0,
  },
  {
    payloadKey: 'COMPLETED_STEP_ARRAY_IS_NOT_EMPTY',
    payloadDescription: '@deprecated Specifies an array of completed step titles for the Progress Tracker component.',
    /**
     * The function checks if the length of `completedStepArray` property of the `host` element is not equal to '0'.
     * If it is, the function will return `true`.
     *
     * @param {HTMLElement} host - The element to check
     * @returns {boolean} A boolean value
     */
    payloadValue: (host) => host.completedStepArray.length > 0,
  },
];
