import { Progress } from "antd"
import { download } from "../../components/factory";
import notify from '../../components/notify'
export const getReportFile = async (idWell, reportName) => {
try {
await download(`/api/well/${idWell}/report/${reportName}`, reportName)
} catch (error) {
notify(`Не удалось скачать отчет ${reportName} по скважине (${idWell})`, 'error')
console.log(error)
}
}
export const ReportCreationNotify = ({idWell, progressData}) => {
progressData = progressData ?? {progress: 0.0, operation: 'Создание отчета', reportName: ''}
return (
<>
{ progressData.operation }
>
)
}