import { Component, ReactNode } from 'react';
import * as React from 'react';
import btnClose from '../../images/btn-close.svg';

interface ICloseButtonProps {
    onClick: () => void;
}

export class CloseButton extends Component<ICloseButtonProps, {}> {
    public render(): ReactNode {
        return (
            <button className='ns-btn-overlay-close' onClick={() => this.props.onClick()}>
                <img src={btnClose} alt='btn-close' className='img-fluid' />
            </button>
        );
    }
}