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, small }) => {
    return type === 'white' ? (_jsxs(TileWhiteButton, { small: small, onClick: () => setIsZoomIn(!isZoomIn), children: [isIcon && _jsx(MagnifierImg, { "data-testid": "magnifier-icon" }), text] })) : type === 'large' ? (_jsxs(TileButtonSuccess, { small: small, onClick: callOrderApi, children: [isIcon && _jsx(CheckImg, {}), text] })) : (_jsxs(TileButton, { small: small, onClick: callOrderApi, children: [isIcon && _jsx(CheckImg, {}), text] }));
};
export default ButtonKDS;
//# sourceMappingURL=ButtonKDS.js.map