- {(hasGoal || hasTodos) && (
-
-
- {activeGoal && }
- {hasTodos && (
-
- )}
-
-
- )}
- {mountedRef.current ? (
-
- }
- disabled={
- isMock ||
- env.NEXT_PUBLIC_STATIC_WEBSITE_ONLY === "true" ||
- isUploading ||
- (!isNewThread && isHistoryLoading)
- }
- onContextChange={(context) =>
- setSettings("context", context)
- }
- onGoalChange={setLocalGoal}
- onSubmit={handleSubmit}
- onStop={handleStop}
- />
- ) : (
-
- )}
- {env.NEXT_PUBLIC_STATIC_WEBSITE_ONLY === "true" && (
-
- {t.common.notAvailableInDemoMode}
-
- )}
-