0 || undefined}
+ onClick={(event) => {
+ if (!(event.target as HTMLElement).closest("button, a, [role='button']")) {
+ inputRef.current?.focus();
+ }
+ }}
+ >
+
+
+ );
+}
+
+export default function Page() {
+ const themeMode = useTheme();
+ const chatProps = useMemo(
+ () =>
+ createMastraHarnessChatProps({
+ getModeId: getCurrentHarnessMode,
+ }),
+ [],
+ );
+
+ return (
+