+
+ {
+ setShowActionsMode(
+ showActionsMode === ActionsMode.Actions
+ ? ActionsMode.Code
+ : ActionsMode.Actions
+ );
+ }}
+ >
+ Show{' '}
+ {showActionsMode === ActionsMode.Actions
+ ? 'Code'
+ : 'Actions'}
+
+ {!isFinished && (
+ {
+ recorderRef.current?.onFullScreenshot();
+ setScreenshotConfirm(true);
+ setTimeout(() => {
+ setScreenshotConfirm(false);
+ }, 2000);
+ }}
+ >
+ {' '}
+ Record Screenshot
+
+ )}
+
+
+ {showActionsMode === ActionsMode.Code && (
+ <>
+
+ {
+ setCopyCodeConfirm(true);
+ setTimeout(() => {
+ setCopyCodeConfirm(false);
+ }, 2000);
+ }}
+ >
+
+ {' '}
+ Copy Code
+
+
+ >
+ )}
+
+
+ )}
+ {showActionsMode === ActionsMode.Actions && (
+