import { ActionContainer } from "../../../features/actions/models/action-config.model";
import { ComponentModel } from "../component.model";
/**
 * Represents the model for a button component.
 * Extends the base `ComponentModel` interface.
 *
 * @interface ButtonComponentModel
 *
 * @property {('submit' | 'button' | 'reset')} [btnType] -
 * Optional type of the button. Can be one of the following:
 * - `'submit'`: Indicates a submit button.
 * - `'button'`: Indicates a generic button.
 * - `'reset'`: Indicates a reset button.
 *
 * @property {ActionContainer} [action] -
 * Optional action container associated with the button.
 */
export interface ButtonComponentModel extends ComponentModel {
    /**
     * The type of the button.
     * Can be 'submit', 'button', or 'reset'.
     */
    btnType?: 'submit' | 'button' | 'reset';
    /**
     * An optional action container associated with the button.
     * This can be used to define custom actions when the button is clicked.
     */
    action?: ActionContainer;
}
