import React from 'react'; import { ButtonProps } from '../utils/types'; import { TileButton, TileWhiteButton, TileButtonSuccess, MagnifierImg, CheckImg, } from './style'; const ButtonKDS = ({ text, type = '', isIcon = false, setIsZoomIn, callOrderApi, isZoomIn, small, }: ButtonProps): JSX.Element => { return type === 'white' ? ( setIsZoomIn(!isZoomIn)}> {isIcon && } {text} ) : type === 'large' ? ( {isIcon && } {text} ) : ( {isIcon && } {text} ); }; export default ButtonKDS;