"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.fileUploaderStructureAdapter = void 0;
const fileUploaderStructureAdapter = () => {
  const adaptedFileStructure = [];
  const addFile = ({
    file,
    path
  }) => {
    adaptedFileStructure.push(Object.assign(file, {
      completed: !!file?.completed,
      path: path.replace(/^\//g, '')
    }));
  };
  return {
    adaptedFileStructure,
    addFile
  };
};
exports.fileUploaderStructureAdapter = fileUploaderStructureAdapter;