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

var AccordionButton = function (props) {
    var children = props.children, leftIcon = props.leftIcon, buttonProps = __rest(props, ["children", "leftIcon"]);
    return (React.createElement(AccordionButton$1, __assign({}, buttonProps),
        leftIcon ? React.createElement(Box, { mr: "sm" }, leftIcon) : null,
        React.createElement(Box, { flex: "1", textAlign: "left" }, children),
        React.createElement(AccordionIcon, null)));
};

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