{
+ const currentDataSourceLatencyInfo = latencies.find(
+ latencyInfo => latencyInfo.dataSourceName === dataSourceName
+ );
+
+ if (!currentDataSourceLatencyInfo) return null;
+
+ if (currentDataSourceLatencyInfo.avgLatency < 100)
+ return (
+
+ Connection
+
+ );
+
+ if (currentDataSourceLatencyInfo.avgLatency < 200)
+ return (
+
+ Acceptable
+
+ );
+
+ return (
+
+ Elevated Latency
+
+ );
+};
diff --git a/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ListConnectedDatabases/parts/index.ts b/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ListConnectedDatabases/parts/index.ts
new file mode 100644
index 00000000000..8e7bbfeff29
--- /dev/null
+++ b/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ListConnectedDatabases/parts/index.ts
@@ -0,0 +1,4 @@
+export { AccelerateProject } from './AccelerateProject';
+export { DisplayDetails, Details } from './Details';
+export { InconsistentSourceDetails } from './InconsistentSourceDetails';
+export { LatencyBadge } from './LatencyBadge';