feat: conditionally show interpretation buttons

This commit is contained in:
karishmas6
2024-10-19 19:08:51 +05:30
parent 0ddff77e19
commit 043f7b6216

View File

@@ -184,12 +184,18 @@ export const InterpretationLog: React.FC<InterpretationLogProps> = ({ isOpen, se
</TableRow> </TableRow>
)) ))
) : ( ) : (
<> hasScrapeListAction || hasScrapeSchemaAction || hasScreenshotAction ? (
<Typography variant="body1" align="center" color="textSecondary"> <>
It looks like you have not selected anything for extraction yet. Once you do, the robot will show a preview of your selections here. <Typography variant="body1" align="center" color="textSecondary">
</Typography> You've successfully trained the robot to perform actions. Click on the Get Output Data Preview to show a preview of data extraction.
<SidePanelHeader /> </Typography>
</> <SidePanelHeader />
</>
) : (
<Typography variant="body1" align="center" color="textSecondary">
"It looks like you have not selected anything for extraction yet. Once you do, the robot will show a preview of your selections here."
</Typography>
)
)} )}
</TableBody> </TableBody>
</Table> </Table>