// import * as XLSX from 'xlsx';
// import { saveAs } from 'file-saver';

export const exportWelcomeExcel = (dataArray: string[][]) => {

    // // 创建工作表并合并单元格
    // const worksheet = XLSX.utils.aoa_to_sheet(dataArray);
    // worksheet['!merges'] = [
    //     // 合并主标题1（合并前两列）
    //     { s: { r: 1, c: 0 }, e: { r: 1, c: 1 } }
    // ];

    // // 创建工作簿并导出
    // const workbook = XLSX.utils.book_new();
    // XLSX.utils.book_append_sheet(workbook, worksheet, 'Sheet1');
    // const excelBuffer = XLSX.write(workbook, { bookType: 'xlsx', type: 'array' });
    // const blob = new Blob([excelBuffer], { type: 'application/octet-stream' });
    // saveAs(blob, 'complex_data.xlsx');
};