import { __rest, __assign } from '../../node_modules/tslib/tslib.es6.js';
import React from 'react';
import { FormControl, Switch as Switch$1, FormLabel } from '@chakra-ui/react';

var Switch = function (_a) {
    var id = _a.id, onChange = _a.onChange, isChecked = _a.isChecked, isDisabled = _a.isDisabled, label = _a.label, rest = __rest(_a, ["id", "onChange", "isChecked", "isDisabled", "label"]);
    return (React.createElement(FormControl, { display: "flex", alignItems: "center", isDisabled: isDisabled },
        React.createElement(Switch$1, __assign({ id: id, onChange: onChange, isChecked: isChecked, isDisabled: isDisabled, mr: "sm" }, rest)),
        label ? (React.createElement(FormLabel, { fontWeight: "regular", htmlFor: id, mb: 0 }, label)) : null));
};

export { Switch as default };
//# sourceMappingURL=index.js.map
