text: export default class FileManager {
    static saveFile(filePath, contentType, data) {
      const a = document.createElement('a');
      const file = new Blob([data], { type: contentType });
      a.href = URL.createObjectURL(file);
      a.download = filePath;
      a.click();
    }
  
    static loadFile(callback) {
      const input = document.createElement('input');
      input.type = 'file';
      input.click();
  
      input.addEventListener('change', () => {
        const reader = new FileReader();
        reader.readAsText(input.files[0]);
  
        reader.addEventListener('load', (event) => {
          const result = event.target.result;
          callback(result);
        });
      });
    }
  }