+ {isCompareSwitchChecked ? (
+
+ {filteredDatasets.map((item) => {
+ return (
+
+ dispatch(setSelectedId(checked, item.resource_id))
+ }
+ />
+ );
+ })}
+
+ ) : (
+
+ {filteredDatasets.map((item) => {
+ const isActiveItem = item.resource_id === activeResourceId;
+ const itemClassName = isActiveItem
+ ? "dataset-item active-item"
+ : "dataset-item";
+ return (
+ dispatch(getQuisbyData(item))}
+ key={item.resource_id}
+ >
+ {item.name}
+
+ );
+ })}
+
+ )}
+
)}
>
);
diff --git a/dashboard/src/modules/components/ComparisonComponent/common-components.jsx b/dashboard/src/modules/components/ComparisonComponent/common-components.jsx
new file mode 100644
index 0000000000..eed50803b5
--- /dev/null
+++ b/dashboard/src/modules/components/ComparisonComponent/common-components.jsx
@@ -0,0 +1,69 @@
+import {
+ EmptyState,
+ EmptyStateBody,
+ EmptyStateVariant,
+ SearchInput,
+} from "@patternfly/react-core";
+import { useDispatch, useSelector } from "react-redux";
+
+import ChartGallery from "./ChartGallery";
+import ChartModal from "./ChartModal";
+import React from "react";
+import { setSearchValue } from "actions/comparisonActions";
+
+export const UnsupportedTextComponent = (props) => (
+