-
- {
+ const messages = defineMessages({
+ errorMessage: {
+ id: 'adminPortal.analyticsCardText.errorMessage',
+ defaultMessage: 'An error occurred: {error_message}',
+ description: 'Message shown to the user in case of error returned byt analytics API.',
+ values: { error_message: error?.message },
+ },
+ noContentErrorMessage: {
+ id: 'adminPortal.analyticsCardText.noContentErrorMessage',
+ defaultMessage: 'Analytics not found.',
+ description: 'Message shown to the user in case of empty response returned byt analytics API.',
+ },
+ });
+
+ return (
+
+
+
+
+
+
+
+ ${
+ error ? (
+
+ ) : (
+ data ||
+ )
}
- />
-
-
-
-
-
-
-);
+
+
+
+