export const VegaButtonGroupRuntimeMetricsPayloadDefinition = [
  {
    payloadKey: 'VARIANT_IS_PRIMARY',
    payloadDescription: 'Specifies the visual style and prominence of the button group. It determines how the button group will be presented to the user.',
    /**
     * The function checks if the `variant` property of the `host` element is equal to 'primary'.
     * If it is, the function will return `true`.
     *
     * @param {HTMLElement} host - The element to check.
     * @returns {boolean} A boolean value
     */
    payloadValue: (host) => host.variant === 'primary',
  },
  {
    payloadKey: 'VARIANT_IS_SECONDARY',
    payloadDescription: 'Specifies the visual style and prominence of the button group. It determines how the button group will be presented to the user.',
    /**
     * The function checks if the `variant` property of the `host` element is equal to 'secondary'.
     * If it is, the function will return `true`.
     *
     * @param {HTMLElement} host - The element to check
     * @returns {boolean} A boolean value
     */
    payloadValue: (host) => host.variant === 'secondary',
  },
  {
    payloadKey: 'VARIANT_IS_TERTIARY',
    payloadDescription: 'Specifies the visual style and prominence of the button group. It determines how the button group will be presented to the user.',
    /**
     * The function checks if the `variant` property of the `host` element is equal to 'tertiary'.
     * If it is, the function will return `true`.
     *
     * @param {HTMLElement} host - The element to check
     * @returns {boolean} A boolean value
     */
    payloadValue: (host) => host.variant === 'tertiary',
  },
];
