"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ResetButton = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const Button_1 = require("../../../../components/Button");
const styles_1 = require("./styles");
const useLogic_1 = require("./useLogic");
const ResetButton = ({ onResetModal, modalForm, isMobile = false, }) => {
    const { isResetButtonDisabled } = (0, useLogic_1.useLogic)({ modalForm });
    if (isMobile) {
        return ((0, jsx_runtime_1.jsx)(styles_1.MobileResetButtonWrapper, { variant: "text", onClick: onResetModal, size: "large", disabled: isResetButtonDisabled, children: "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C" }));
    }
    return ((0, jsx_runtime_1.jsx)(styles_1.DesktopResetButtonWrapper, { children: (0, jsx_runtime_1.jsx)(Button_1.Button, { variant: "text", onClick: onResetModal, size: "large", disabled: isResetButtonDisabled, color: "error", children: "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C" }) }));
};
exports.ResetButton = ResetButton;
