export const VegaCarouselRuntimeMetricsPayloadDefinition = [
  {
    payloadKey: 'PER_PAGE_IS_ONE',
    payloadDescription: '@deprecated Specifies the number of elements displayed per page in the carousel.',
    /**
     * The function checks if the `perPage` property of the `host` element is equal to '1'.
     * If it is, the function will return `true`.
     *
     * @param {HTMLElement} host - The element to check
     * @returns {boolean} A boolean value
     */
    payloadValue: (host) => host.perPage === 1,
  },
  {
    payloadKey: 'PER_PAGE_IS_NOT_ONE',
    payloadDescription: '@deprecated Specifies the number of elements displayed per page in the carousel.',
    /**
     * The function checks if the `perPage` property of the `host` element is not equal to '1'.
     * If it is, the function will return `true`.
     *
     * @param {HTMLElement} host - The element to check
     * @returns {boolean} A boolean value
     */
    payloadValue: (host) => host.perPage !== 1,
  },
];
