"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ButtonAttach = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const uikit_1 = require("@gravity-ui/uikit");
const ButtonAttach = ({ onUpdate, onChange, multiple, buttonProps, accept, children, }) => {
    const { controlProps, triggerProps } = (0, uikit_1.useFileInput)({ onUpdate, onChange });
    return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", { type: "file", multiple: multiple, accept: accept, ...controlProps }), (0, jsx_runtime_1.jsx)(uikit_1.Button, { ...buttonProps, ...triggerProps, children: children })] }));
};
exports.ButtonAttach = ButtonAttach;
//# sourceMappingURL=ButtonAttach.js.map
