var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
import React from "react";
import { SideSheet } from '../../../UI/surfaces/SideSheet';
import { FluentTextFieldAutoComplete } from '../../../UI/inputs/textField/FluentTextFieldAutoComplete';
/**
 * @param {object} props
 * @param {object} props.selectedGridPanel
 * @param {string} props.environment
 * @param {boolean} props.open
 * @param {Function} props.onClose
 * @param {Function} props.onSubmit
 * @param {string} props.title
 * @param {any[]} props.grids
 * @param {any[]} props.panels
 * @param {any} props.grid
 * @param {Function} props.setGrid
 * @param {any} props.panel
 * @param {Function} props.setPanel
 * @returns {JSX.Element}
 */
const UdpGridPanelManagementSidesheet = (props) => {
    const { selectedGridPanel, environment, open, onClose, onSubmit, title, grids, panels, grid, setGrid, panel, setPanel } = props, sheetProps = __rest(props, ["selectedGridPanel", "environment", "open", "onClose", "onSubmit", "title", "grids", "panels", "grid", "setGrid", "panel", "setPanel"]);
    return (React.createElement(SideSheet, Object.assign({ open: open, onClose: () => onClose(), width: 400, title: title, buttonLabel: 'Save', onSubmit: onSubmit }, sheetProps), React.createElement(FluentTextFieldAutoComplete, { id: 'grid', label: "Grid", options: grids, optionKey: "name", onChange: setGrid, value: grid }), React.createElement(FluentTextFieldAutoComplete, { id: 'panel', label: "Panel", options: panels, optionKey: "name", onChange: setPanel, value: panel })));
};
export default UdpGridPanelManagementSidesheet;
//# sourceMappingURL=UdpGridPanelManagementSidesheet.js.map