import { dimensionAnalysis } from '@/services/dimensionAnalysis';
export const exportService = {
  status: () => ({ implemented: true, label: 'JSON and CSV export ready', lastJsonExport: null, lastCsvExport: null }),
  componentJson: (component) => dimensionAnalysis.exportData(component, 'json'),
  componentCsv: (component) => dimensionAnalysis.exportData(component, 'csv'),
  download: (content, filename, mime = 'application/json') => { const blob = new Blob([content], { type: mime }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = filename; a.click(); URL.revokeObjectURL(url); },
};