export const getPreviewFromFile = (file) => {
    return file.url ? file.url : URL.createObjectURL(file);
};

export const getFileName = (file, index) => {
    return file.name ? file.name : "Attachment " + index;
};
