import type { FC } from 'react';
import { Download } from 'lucide-react';
import { Button } from './Button';

interface ExportButtonProps {
  onClick: () => void;
  loading?: boolean;
}

/** Botón estándar de exportación de reportes (xlsx), arriba a la derecha */
export const ExportButton: FC<ExportButtonProps> = ({ onClick, loading }) => (
  <Button variant="outline" size="sm" onClick={onClick} loading={loading}>
    <Download size={14} className="mr-1.5" />
    Exportar
  </Button>
);

export default ExportButton;
