import { Button } from "@/components/ui/button";
import { Download } from "lucide-react";

const ExportExcel = ({ downloadExcel, loading }: any) => {

    return (
        <Button
            variant="default"
            color="success"
            onClick={downloadExcel}
            disabled={loading}
            className={`${loading ? 'cursor-disabled' : ''}`}
        >
            <Download size={16} />
            <p className="hidden sm:block">Export to Excel</p>
        </Button>
    )
}

export default ExportExcel
