import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { TileButton, TileWhiteButton, TileButtonSuccess, MagnifierImg, CheckImg, } from './style';
const ButtonKDS = ({ text, type = '', isIcon = false, setIsZoomIn, callOrderApi, isZoomIn, }) => {
    return type === 'white' ? (_jsxs(TileWhiteButton, Object.assign({ onClick: () => setIsZoomIn(!isZoomIn) }, { children: [isIcon && _jsx(MagnifierImg, { "data-testid": "magnifier-icon" }, void 0), text] }), void 0)) : type === 'large' ? (_jsxs(TileButtonSuccess, Object.assign({ onClick: callOrderApi }, { children: [isIcon && _jsx(CheckImg, {}, void 0), text] }), void 0)) : (_jsxs(TileButton, Object.assign({ onClick: callOrderApi }, { children: [isIcon && _jsx(CheckImg, {}, void 0), text] }), void 0));
};
export default ButtonKDS;
//# sourceMappingURL=ButtonKDS.js.map