import React, { type MouseEventHandler } from 'react';
import { RotateCw } from 'lucide-react';
import './ReloadButton.css';

function ReloadButton({
  onClick = () => {},
  disabled = false,
  ...props
}: {
  onClick?: MouseEventHandler<HTMLButtonElement>;
  disabled?: boolean;
}) {
  return (
    <button className={`reload-icon`} onClick={onClick} disabled={disabled} {...props}>
      <RotateCw />
    </button>
  );
}

export default ReloadButton;
