import React from 'react';
import { ButtonCloseProps } from '../utils/types';
import { ButtonCloseWrapper } from './style';

const ButtonClose = ({ setIsZoomIn }: ButtonCloseProps): JSX.Element => {
  return (
    <ButtonCloseWrapper
      data-testid="close-button"
      onClick={() => setIsZoomIn(false)}
    >
      <span />
      <span />
    </ButtonCloseWrapper>
  );
};

export default ButtonClose;
