"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LoadingButton = LoadingButton;
const jsx_runtime_1 = require("react/jsx-runtime");
const button_1 = require("../button");
const lucide_react_1 = require("lucide-react");
function LoadingButton({ loading, disabled, children, ...props }) {
    return ((0, jsx_runtime_1.jsxs)(button_1.Button, { ...props, disabled: loading || disabled, children: [loading && (0, jsx_runtime_1.jsx)(lucide_react_1.Loader2, { className: "mr-2 h-4 w-4 animate-spin" }), children] }));
}
