"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Reset = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
/*
 *  This file is part of CoCalc: Copyright © 2022 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */
const antd_1 = require("antd");
function Reset({ addBox, router, form, onChange }) {
    return ((0, jsx_runtime_1.jsxs)(antd_1.Form.Item, { wrapperCol: { offset: 0, span: 24 }, children: [addBox, router.query.id == null && ((0, jsx_runtime_1.jsx)(antd_1.Popconfirm, { title: "Reset all values to their default?", onConfirm: () => {
                    form.resetFields();
                    onChange();
                }, children: (0, jsx_runtime_1.jsx)(antd_1.Button, { style: { float: "right" }, children: "Reset Form" }) }))] }));
}
exports.Reset = Reset;
//# sourceMappingURL=reset.js.map