+ {datasetAlerts.map((alert: Alert, index) => {
+ const translatedMsg = alert.dynamicFields
+ ? t(`alerts.${alert.messageKey}.alertText`, alert.dynamicFields)
+ : t(`alerts.${alert.messageKey}.alertText`)
+ const translatedHeading = t(`alerts.${alert.messageKey}.heading`)
+ const alertKey = `alert-${index}`
+ return (
+
+ {parse(translatedMsg)}
+
+ )
+ })}
+
+ )
+}
diff --git a/src/sections/dataset/DatasetFactory.tsx b/src/sections/dataset/DatasetFactory.tsx
index 1ac3e1e15..a256f892b 100644
--- a/src/sections/dataset/DatasetFactory.tsx
+++ b/src/sections/dataset/DatasetFactory.tsx
@@ -11,6 +11,7 @@ import { SettingJSDataverseRepository } from '../../settings/infrastructure/Sett
import { FilePermissionsProvider } from '../file/file-permissions/FilePermissionsProvider'
import { SettingsProvider } from '../settings/SettingsProvider'
import { DatasetProvider } from './DatasetProvider'
+import { AlertProvider } from '../alerts/AlertProvider'
const datasetRepository = new DatasetJSDataverseRepository()
const fileRepository = new FileJSDataverseRepository()
@@ -24,7 +25,9 @@ export class DatasetFactory {