export const VegaModalRuntimeMetricsPayloadDefinition = [
  {
    payloadKey: 'IS_VERTICALLY_CENTER',
    payloadDescription: '@deprecated Determines whether the modal is vertically centered on the screen.',
    /**
     * The function checks if the `isVerticallyCenter` 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.isVerticallyCenter === true,
  },
  {
    payloadKey: 'IS_NOT_VERTICALLY_CENTER',
    payloadDescription: '@deprecated Determines whether the modal is vertically centered on the screen.',
    /**
     * The function checks if the `isVerticallyCenter` 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.isVerticallyCenter === false,
  },
];
