From 13ec9e1cd512b5b35f2f38ceb5a10feeab31777b Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 19 Oct 2024 10:00:26 +0530 Subject: [PATCH] feat: empty table --- .../molecules/InterpretationLog.tsx | 150 ++++++++++-------- 1 file changed, 80 insertions(+), 70 deletions(-) diff --git a/src/components/molecules/InterpretationLog.tsx b/src/components/molecules/InterpretationLog.tsx index d4cdaa3d..08c2c60b 100644 --- a/src/components/molecules/InterpretationLog.tsx +++ b/src/components/molecules/InterpretationLog.tsx @@ -107,76 +107,86 @@ export const InterpretationLog: React.FC = ({ isOpen, se return ( - - - - - Output Data Preview - -
- {/* - {log} - */} - {tableData.length > 0 && ( - - - - - {columns.map((column) => ( - {column} - ))} - - - - {tableData.map((row, index) => ( - - {columns.map((column) => ( - {row[column]} - ))} - + + + + + Output Data Preview + +
+ +
+ + + {columns.length > 0 ? ( + columns.map((column) => ( + {column} + )) + ) : ( + No Data + )} + + + + {tableData.length > 0 ? ( + tableData.map((row, index) => ( + + {columns.map((column) => ( + {row[column]} ))} - -
-
- )} -
-
- - - + + )) + ) : ( + + + It looks like you have not selected anything for extraction yet. Once you do, the robot will show a preview of your selections here. + + + )} + + + +
+
+ + + + ); } \ No newline at end of file