File size: 813 Bytes
b010f1b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// ExportPanel Component - Export buttons for DXF download
import React from 'react';
import { Download, Package } from 'lucide-react';

interface ExportPanelProps {
    hasLayouts: boolean;
    onExportAll: () => void;
    loading: boolean;
}

export const ExportPanel: React.FC<ExportPanelProps> = ({
    hasLayouts,
    onExportAll,
    loading,
}) => {
    if (!hasLayouts) {
        return null;
    }

    return (
        <div className="export-panel">
            <button
                className="btn btn-primary btn-export-all"
                onClick={onExportAll}
                disabled={loading}
            >
                <Package size={18} />
                Export All as ZIP
                <Download size={16} />
            </button>
        </div>
    );
};

export default ExportPanel;