export const VegaCardRuntimeMetricsPayloadDefinition = [
  {
    payloadKey: 'VARIANT_IS_UNDEFINED',
    payloadDescription: 'Determines whether the card is rendered with a shadow or a border. By default, cards are rendered without a shadow or border.',
    /**
     * The function checks if the `variant` property of the `host` element is equal to 'undefined'.
     * If it is, the function will return `true`.
     *
     * @param {HTMLElement} host - The element to check
     * @returns {boolean} A boolean value
     */
    payloadValue: (host) => host.variant === undefined,
  },
  {
    payloadKey: 'VARIANT_IS_SHADOW',
    payloadDescription: 'Determines whether the card is rendered with a shadow.',
    /**
     * The function checks if the `variant` property of the `host` element is equal to 'shadow'.
     * If it is, the function will return `true`.
     *
     * @param {HTMLElement} host - The element to check
     * @returns {boolean} A boolean value
     */
    payloadValue: (host) => host.variant === 'shadow',
  },
  {
    payloadKey: 'VARIANT_IS_BORDER',
    payloadDescription: 'Determines whether the card is rendered with a border.',
    /**
     * The function checks if the `variant` property of the `host` element is equal to 'border'.
     * If it is, the function will return `true`.
     *
     * @param {HTMLElement} host - The element to check
     * @returns {boolean} A boolean value
     */
    payloadValue: (host) => host.variant === 'border',
  },
];
