// src/utils/exportExcel.ts
import * as XLSX from "xlsx";
function downloadExcel(fileName, sheets) {
  const workbook = XLSX.utils.book_new();
  for (const sheet of sheets) {
    const data = [sheet.headers, ...sheet.rows];
    const worksheet = XLSX.utils.aoa_to_sheet(data);
    XLSX.utils.book_append_sheet(workbook, worksheet, sheet.name);
  }
  XLSX.writeFile(workbook, `${fileName}.xlsx`);
}
export {
  downloadExcel
};
//# sourceMappingURL=index.mjs.map