Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

ThreadFilesRouteScreen.tsx

667 lines23.6 KB

1import { NativeHeaderToolbar, NativeStackScreenOptions } from "../../native/StackHeader";
2import { StackActions, useNavigation, type StaticScreenProps } from "@react-navigation/native";
3import { useCallback, useEffect, useRef, useState } from "react";
4import { ActivityIndicator, Platform, useColorScheme, View } from "react-native";
5import { useSafeAreaInsets } from "react-native-safe-area-context";
6import Svg, { Defs, LinearGradient, Rect, Stop } from "react-native-svg";
7import {
8 EnvironmentId,
9 type ProjectListEntriesResult,
10 type ProjectReadFileResult,
11 ThreadId,
12} from "@t3tools/contracts";
13​
14import { AndroidScreenHeader } from "../../components/AndroidScreenHeader";
15import { SymbolView } from "../../components/AppSymbol";
16import { AppText as Text, AppTextInput as TextInput } from "../../components/AppText";
17import { EmptyState } from "../../components/EmptyState";
18import { LoadingScreen } from "../../components/LoadingScreen";
19import { resolveFileSelectionNavigationAction } from "../../lib/adaptive-navigation";
20import { copyTextWithHaptic } from "../../lib/copyTextWithHaptic";
21import { tryOpenExternalUrl } from "../../lib/openExternalUrl";
22import { useThemeColor } from "../../lib/useThemeColor";
23import { useThreadSelection } from "../../state/use-thread-selection";
24import { useSelectedThreadWorktree } from "../../state/use-selected-thread-worktree";
25import { useEnvironmentQuery } from "../../state/query";
26import { projectEnvironment } from "../../state/projects";
27import {
28 useAdaptiveWorkspaceLayout,
29 useAdaptiveWorkspacePaneRole,
30 useRegisterWorkspaceInspector,
31} from "../layout/AdaptiveWorkspaceLayout";
32import { createNativeMailSearchToolbarItem } from "../layout/native-mail-search-toolbar";
33import { WorkspaceSidebarToolbar } from "../layout/workspace-sidebar-toolbar";
34import { ReviewHighlighterProvider } from "../review/ReviewHighlighterProvider";
35import { ThreadRouteScreen } from "../threads/ThreadRouteScreen";
36import { FileMarkdownPreview } from "./FileMarkdownPreview";
37import { FileTreeBrowser } from "./FileTreeBrowser";
38import { preloadWorkspaceFileContents } from "./preload-workspace-file";
39import { SourceFileSurface } from "./SourceFileSurface";
40import { ThreadFileNavigatorPane } from "./thread-file-navigator-pane";
41import { WorkspaceFileImagePreview } from "./WorkspaceFileImagePreview";
42import { WorkspaceFileWebPreview } from "./WorkspaceFileWebPreview";
43import {
44 basename,
45 isBrowserPreviewFile,
46 isImagePreviewFile,
47 isMarkdownPreviewFile,
48 isSvgImagePreviewFile,
49} from "./filePath";
50import { useWorkspaceFileAssetUrl } from "./workspaceFileAssetUrl";
51​
52type FileViewMode = "preview" | "source";
53​
54function firstRouteParam(value: string | string[] | undefined): string | null {
55 if (Array.isArray(value)) {
56 return value[0] ?? null;
57 }
58​
59 return value ?? null;
61​
62function normalizeRoutePath(value: string | string[] | undefined): string | null {
63 const path = Array.isArray(value) ? value.join("/") : value;
64 if (path === undefined || path.trim().length === 0) {
65 return null;
66 }
67 return path;
69​
70function normalizeRouteLine(value: string | null): number | null {
71 if (value === null) {
72 return null;
73 }
74 const parsed = Number(value);
75 return Number.isInteger(parsed) && parsed > 0 ? parsed : null;
77​
78function defaultViewMode(path: string | null): FileViewMode {
79 return path !== null && (isBrowserPreviewFile(path) || isImagePreviewFile(path))
80 ? "preview"
81 : "source";
83​
84function FileContent(props: {
85 readonly activeMode: FileViewMode;
86 readonly previewUri: string | null;
87 readonly fileContents: string | null;
88 readonly fileError: string | null;
89 readonly relativePath: string;
90 readonly initialLine: number | null;
91 readonly truncated: boolean;
92 readonly onRefresh?: () => Promise<void> | void;
93}) {
94 const isMarkdown = isMarkdownPreviewFile(props.relativePath);
95 const isBrowserFile = isBrowserPreviewFile(props.relativePath);
96 const isImageFile = isImagePreviewFile(props.relativePath);
97​
98 if (props.activeMode === "preview" && isImageFile) {
99 if (isSvgImagePreviewFile(props.relativePath)) {
100 return <WorkspaceFileWebPreview uri={props.previewUri} />;
101 }
102 return (
103 <WorkspaceFileImagePreview
104 accessibilityLabel={basename(props.relativePath)}
105 uri={props.previewUri}
106 />
107 );
108 }
109​
110 if (props.activeMode === "preview" && isBrowserFile) {
111 return <WorkspaceFileWebPreview uri={props.previewUri} />;
112 }
113​
114 if (props.fileError && props.fileContents === null) {
115 return (
116 <View className="flex-1 items-center justify-center bg-sheet px-6">
117 <EmptyState title="File unavailable" detail={props.fileError} />
118 </View>
119 );
120 }
121​
122 if (props.fileContents === null) {
123 return (
124 <View className="flex-1 items-center justify-center gap-3 bg-sheet px-6">
125 <ActivityIndicator />
126 <Text className="text-center text-sm text-foreground-muted">Loading file...</Text>
127 </View>
128 );
129 }
130​
131 return (
132 <View className="flex-1 bg-sheet">
133 {props.truncated ? (
134 <View className="border-b border-amber-200 bg-amber-50 px-4 py-2 dark:border-amber-900/60 dark:bg-amber-950/40">
135 <Text className="text-2xs font-t3-bold uppercase text-amber-700 dark:text-amber-300">
136 Partial file
137 </Text>
138 <Text className="text-xs leading-snug text-amber-800 dark:text-amber-200">
139 Preview limited to the first 1 MB of a truncated file.
140 </Text>
141 </View>
142 ) : null}
143 {props.activeMode === "preview" && isMarkdown ? (
144 <FileMarkdownPreview markdown={props.fileContents} onRefresh={props.onRefresh} />
145 ) : (
146 <SourceFileSurface
147 contents={props.fileContents}
148 path={props.relativePath}
149 initialLine={props.initialLine}
150 onRefresh={props.onRefresh}
151 />
152 )}
153 </View>
154 );
156​
157type ThreadFilesRouteScreenProps = StaticScreenProps<{
158 readonly environmentId: string;
159 readonly threadId: string;
160}>;
161​
162type ThreadFileRouteScreenProps = StaticScreenProps<{
163 readonly environmentId: string;
164 readonly threadId: string;
165 readonly path: string[];
166 readonly line?: string;
167}>;
168​
169function useThreadFilesWorkspace(params: {
170 readonly environmentId?: string | string[];
171 readonly threadId?: string | string[];
172}) {
173 const routeEnvironmentId = firstRouteParam(params.environmentId);
174 const routeThreadId = firstRouteParam(params.threadId);
175 const { selectedThread, selectedThreadProject } = useThreadSelection();
176 const { selectedThreadCwd } = useSelectedThreadWorktree();
177 const environmentId =
178 routeEnvironmentId !== null
179 ? EnvironmentId.make(routeEnvironmentId)
180 : (selectedThread?.environmentId ?? null);
181 const threadId = routeThreadId !== null ? ThreadId.make(routeThreadId) : null;
182 const project = selectedThreadProject as {
183 readonly title?: string;
184 readonly workspaceRoot?: string;
185 } | null;
186​
187 return {
188 cwd: selectedThreadCwd ?? project?.workspaceRoot ?? null,
189 environmentId,
190 projectName: project?.title ?? "Files",
191 selectedThread,
192 threadId,
193 };
195​
196function FilesUnavailable() {
197 return (
198 <View className="flex-1 items-center justify-center bg-sheet px-6">
199 <NativeStackScreenOptions options={{ title: "Files" }} />
200 <EmptyState
201 title="Files unavailable"
202 detail="This thread does not have an active workspace path."
203 />
204 </View>
205 );
207​
208function FilesToolbarBottomFade() {
209 const sheetColor = String(useThemeColor("--color-sheet"));
210​
211 if (process.env.EXPO_OS !== "ios") {
212 return null;
213 }
214​
215 return (
216 <View
217 pointerEvents="none"
218 accessibilityElementsHidden
219 importantForAccessibility="no-hide-descendants"
220 className="absolute inset-x-0 bottom-0 z-[1] h-28"
221 >
222 <Svg width="100%" height="100%">
223 <Defs>
224 <LinearGradient id="files-toolbar-bottom-fade" x1="0%" x2="0%" y1="0%" y2="100%">
225 <Stop offset="0%" stopColor={sheetColor} stopOpacity={0} />
226 <Stop offset="58%" stopColor={sheetColor} stopOpacity={0.72} />
227 <Stop offset="100%" stopColor={sheetColor} stopOpacity={0.96} />
228 </LinearGradient>
229 </Defs>
230 <Rect width="100%" height="100%" fill="url(#files-toolbar-bottom-fade)" />
231 </Svg>
232 </View>
233 );
235​
236export function ThreadFilesTreeScreen(props: ThreadFilesRouteScreenProps) {
237 useAdaptiveWorkspacePaneRole("inspector");
238 const navigation = useNavigation();
239 const { fileInspector, layout, panes, showAuxiliaryPane, togglePrimarySidebar } =
240 useAdaptiveWorkspaceLayout();
241 const [searchQuery, setSearchQuery] = useState("");
242 const colorScheme = useColorScheme();
243 const isAndroid = Platform.OS === "android";
244 const highlightTheme = colorScheme === "dark" ? "dark" : "light";
245 const iconColor = String(useThemeColor("--color-icon-muted"));
246 const { cwd, environmentId, projectName, selectedThread, threadId } = useThreadFilesWorkspace(
247 props.route.params,
248 );
249 const revealedInspectorRef = useRef(false);
250 const entriesQuery = useEnvironmentQuery(
251 environmentId !== null && cwd !== null && !fileInspector.supported
252 ? projectEnvironment.listEntries({
253 environmentId,
254 input: { cwd },
255 })
256 : null,
257 );
258 const entriesData = entriesQuery.data as ProjectListEntriesResult | null;
259 const handleReturnToThread = useCallback(() => {
260 if (navigation.canGoBack()) {
261 navigation.goBack();
262 return;
263 }
264 if (environmentId !== null && threadId !== null) {
265 navigation.dispatch(
266 StackActions.replace("Thread", {
267 environmentId: String(environmentId),
268 threadId: String(threadId),
269 }),
270 );
271 }
272 }, [environmentId, navigation, threadId]);
273​
274 const handleSelectFile = useCallback(
275 (path: string) => {
276 if (environmentId === null || threadId === null) {
277 return;
278 }
279 const params = {
280 environmentId: String(environmentId),
281 threadId: String(threadId),
282 path: path.split("/").filter((segment) => segment.length > 0),
283 };
284 const navigationAction = resolveFileSelectionNavigationAction({
285 hasPersistentFileInspector: fileInspector.supported,
286 });
287 if (navigationAction === "replace") {
288 navigation.dispatch(StackActions.replace("ThreadFile", params));
289 return;
290 }
291 navigation.navigate("ThreadFile", params);
292 },
293 [environmentId, fileInspector.supported, navigation, threadId],
294 );
295 const renderInspector = useCallback(
296 (headerInset: number) =>
297 environmentId !== null && cwd !== null ? (
298 <ThreadFileNavigatorPane
299 cwd={cwd}
300 environmentId={environmentId}
301 headerInset={headerInset}
302 projectName={projectName}
303 selectedPath={null}
304 onSelectFile={handleSelectFile}
305 />
306 ) : null,
307 [cwd, environmentId, handleSelectFile, projectName],
308 );
309 const handlePreviewFile = useCallback(
310 (relativePath: string) => {
311 if (environmentId === null || cwd === null) {
312 return;
313 }
314 preloadWorkspaceFileContents({
315 cwd,
316 environmentId,
317 relativePath,
318 theme: highlightTheme,
319 });
320 },
321 [cwd, environmentId, highlightTheme],
322 );
323 useEffect(() => {
324 if (fileInspector.supported && cwd !== null && !revealedInspectorRef.current) {
325 revealedInspectorRef.current = true;
326 showAuxiliaryPane("inspector");
327 }
328 }, [cwd, fileInspector.supported, showAuxiliaryPane]);
329​
330 if (selectedThread === null || environmentId === null || threadId === null) {
331 if (fileInspector.supported) {
332 return (
333 <ThreadRouteScreen
334 onReturnToThread={handleReturnToThread}
335 renderInspector={renderInspector}
336 route={props.route}
337 />
338 );
339 }
340 return <LoadingScreen message="Opening files..." messagePlacement="above-spinner" />;
341 }
342​
343 if (cwd === null) {
344 return <FilesUnavailable />;
345 }
346​
347 if (fileInspector.supported) {
348 return (
349 <ThreadRouteScreen
350 onReturnToThread={handleReturnToThread}
351 renderInspector={renderInspector}
352 route={props.route}
353 />
354 );
355 }
356​
357 const usesCompactMailToolbar = Platform.OS === "ios" && !layout.usesSplitView;
358​
359 return (
360 <>
361 {/* Static header config (glass preset, title, contentStyle) lives in Stack.tsx.
362 Only genuinely dynamic options are set here. */}
363 <NativeStackScreenOptions
364 options={{
365 headerShown: !isAndroid,
366 unstable_headerSubtitle:
367 Platform.OS === "ios" && projectName.length > 0 ? projectName : undefined,
368 // No refresh button: the list already supports pull-to-refresh.
369 unstable_headerToolbarItems: usesCompactMailToolbar
370 ? () => [
371 createNativeMailSearchToolbarItem({
372 onSearchTextChange: setSearchQuery,
373 placeholder: "Search files",
374 searchTextChangeId: "files-search-text",
375 }),
376 ]
377 : undefined,
378 headerSearchBarOptions: usesCompactMailToolbar
379 ? undefined
380 : {
381 allowToolbarIntegration: true,
382 autoCapitalize: "none",
383 hideNavigationBar: false,
384 placeholder: "Search files",
385 onChangeText: (event) => {
386 setSearchQuery(event.nativeEvent.text);
387 },
388 onCancelButtonPress: () => {
389 setSearchQuery("");
390 },
391 },
392 }}
393 />
394 {isAndroid ? (
395 <>
396 <AndroidScreenHeader
397 title="Files"
398 subtitle={projectName}
399 onBack={handleReturnToThread}
400 actions={[
401 {
402 accessibilityLabel: "Refresh files",
403 icon: "arrow.clockwise",
404 onPress: entriesQuery.refresh,
405 },
406 ]}
407 />
408 <View className="flex-row items-center gap-2 border-b border-border px-3 py-2">
409 <SymbolView name="magnifyingglass" size={17} tintColor={iconColor} type="monochrome" />
410 <TextInput
411 accessibilityLabel="Search files"
412 autoCapitalize="none"
413 autoCorrect={false}
414 className="min-h-10 flex-1 rounded-xl py-2 text-sm"
415 placeholder="Search files"
416 value={searchQuery}
417 onChangeText={setSearchQuery}
418 />
419 </View>
420 </>
421 ) : (
422 <>
423 {layout.usesSplitView ? (
424 <NativeHeaderToolbar placement="left">
425 <NativeHeaderToolbar.Button
426 accessibilityLabel={panes.primarySidebarVisible ? "Maximize files" : "Show threads"}
427 icon={
428 panes.primarySidebarVisible
429 ? "arrow.up.left.and.arrow.down.right"
430 : "sidebar.left"
431 }
432 onPress={togglePrimarySidebar}
433 separateBackground
434 />
435 </NativeHeaderToolbar>
436 ) : null}
437 {usesCompactMailToolbar ? null : (
438 <NativeHeaderToolbar placement="bottom">
439 <NativeHeaderToolbar.SearchBarSlot />
440 </NativeHeaderToolbar>
441 )}
442 </>
443 )}
444 <FileTreeBrowser
445 entries={entriesData?.entries ?? []}
446 error={entriesQuery.error}
447 isPending={entriesQuery.isPending}
448 searchQuery={searchQuery}
449 selectedPath={null}
450 onPreviewFile={handlePreviewFile}
451 onRefresh={entriesQuery.refresh}
452 onSelectFile={handleSelectFile}
453 />
454 <FilesToolbarBottomFade />
455 </>
456 );
458​
459export function ThreadFileScreen(props: ThreadFileRouteScreenProps) {
460 useAdaptiveWorkspacePaneRole("inspector");
461 const navigation = useNavigation();
462 const { fileInspector, panes, toggleAuxiliaryPane } = useAdaptiveWorkspaceLayout();
463 const iconColor = useThemeColor("--color-icon");
464 const params = props.route.params;
465 const relativePath = normalizeRoutePath(params.path);
466 const targetLine = normalizeRouteLine(firstRouteParam(params.line));
467 const { cwd, environmentId, projectName, selectedThread, threadId } = useThreadFilesWorkspace(
468 props.route.params,
469 );
470 const [modeOverride, setModeOverride] = useState<{
471 readonly path: string;
472 readonly mode: FileViewMode;
473 } | null>(null);
474 const [previewRevision, setPreviewRevision] = useState(0);
475 const isBrowserFile = relativePath !== null && isBrowserPreviewFile(relativePath);
476 const isImageFile = relativePath !== null && isImagePreviewFile(relativePath);
477 const canPreview =
478 relativePath !== null && (isMarkdownPreviewFile(relativePath) || isBrowserFile || isImageFile);
479 const activeMode =
480 relativePath !== null && modeOverride?.path === relativePath
481 ? modeOverride.mode
482 : defaultViewMode(relativePath);
483 const resolvedActiveMode = canPreview ? activeMode : "source";
484 const assetPreviewPath = isBrowserFile || isImageFile ? relativePath : null;
485 const assetPreviewUri = useWorkspaceFileAssetUrl({
486 cwd,
487 environmentId,
488 relativePath: assetPreviewPath,
489 threadId,
490 });
491 const previewUri =
492 assetPreviewUri === null || previewRevision === 0
493 ? assetPreviewUri
494 : `${assetPreviewUri}${assetPreviewUri.includes("?") ? "&" : "?"}revision=${previewRevision}`;
495 const needsFileContents =
496 relativePath !== null &&
497 (resolvedActiveMode === "source" || isMarkdownPreviewFile(relativePath));
498 const fileQuery = useEnvironmentQuery(
499 environmentId !== null && cwd !== null && relativePath !== null && needsFileContents
500 ? projectEnvironment.readFile({
501 environmentId,
502 input: { cwd, relativePath },
503 })
504 : null,
505 );
506 const fileData = fileQuery.data as ProjectReadFileResult | null;
507​
508 const handleSelectFile = useCallback(
509 (path: string) => {
510 navigation.navigate("ThreadFile", {
511 environmentId: String(environmentId),
512 threadId: String(threadId),
513 path: path.split("/").filter(Boolean),
514 });
515 },
516 [environmentId, navigation, threadId],
517 );
518 const renderInspector = useCallback(
519 (headerInset: number) =>
520 fileInspector.supported && environmentId !== null && cwd !== null ? (
521 <ThreadFileNavigatorPane
522 cwd={cwd}
523 environmentId={environmentId}
524 headerInset={headerInset}
525 projectName={projectName}
526 selectedPath={relativePath}
527 onSelectFile={handleSelectFile}
528 />
529 ) : undefined,
530 [cwd, environmentId, fileInspector.supported, handleSelectFile, projectName, relativePath],
531 );
532 // The workspace inspector column spans the full window height. On iOS the
533 // pane brings its own nested native header; elsewhere it pads itself below
534 // the top inset.
535 const safeAreaInsets = useSafeAreaInsets();
536 const inspectorHeaderInset = Platform.OS === "ios" ? 0 : safeAreaInsets.top;
537 // Hand the file navigator to the workspace so it renders beside the
538 // navigator, outside this screen's native header.
539 const renderWorkspaceInspector = useCallback(
540 () => renderInspector(inspectorHeaderInset),
541 [inspectorHeaderInset, renderInspector],
542 );
543 useRegisterWorkspaceInspector(fileInspector.supported ? renderWorkspaceInspector : undefined);
544​
545 if (selectedThread === null || environmentId === null || threadId === null) {
546 return <LoadingScreen message="Opening file..." messagePlacement="above-spinner" />;
547 }
548​
549 if (cwd === null) {
550 return <FilesUnavailable />;
551 }
552​
553 if (relativePath === null) {
554 return (
555 <View className="flex-1 items-center justify-center bg-sheet px-6">
556 <NativeStackScreenOptions options={{ title: "Files" }} />
557 <EmptyState title="File unavailable" detail="This file path is invalid." />
558 </View>
559 );
560 }
561​
562 const parentDir = relativePath.split("/").slice(0, -1).join("/");
563 const headerSubtitle = [projectName, parentDir].filter(Boolean).join(" · ");
564​
565 return (
566 <ReviewHighlighterProvider>
567 <View className="flex-1 bg-sheet">
568 <NativeStackScreenOptions
569 options={{
570 // Static header config lives in Stack.tsx (SOLID_HEADER_OPTIONS: solid
571 // sheet-colored header — this route's content scrolls internally, so
572 // there is nothing for glass to sample). Only dynamic values here.
573 headerTintColor: iconColor,
574 headerTitle: basename(relativePath),
575 title: basename(relativePath),
576 unstable_headerSubtitle:
577 Platform.OS === "ios" && headerSubtitle.length > 0 ? headerSubtitle : undefined,
578 }}
579 />
580 <WorkspaceSidebarToolbar>
581 {fileInspector.supported ? (
582 <NativeHeaderToolbar.Button
583 accessibilityLabel="Return to chat"
584 icon="chevron.left"
585 onPress={() => {
586 navigation.dispatch(
587 StackActions.replace("Thread", {
588 environmentId: String(environmentId),
589 threadId: String(threadId),
590 }),
591 );
592 }}
593 />
594 ) : null}
595 </WorkspaceSidebarToolbar>
596 <NativeHeaderToolbar placement="right">
597 {fileInspector.supported ? (
598 <NativeHeaderToolbar.Button
599 accessibilityLabel={
600 panes.auxiliaryPaneVisible ? "Hide file navigator" : "Show file navigator"
601 }
602 icon="sidebar.right"
603 onPress={toggleAuxiliaryPane}
604 separateBackground
605 />
606 ) : null}
607 <NativeHeaderToolbar.Menu accessibilityLabel="File actions" icon="ellipsis">
608 {canPreview && !isImageFile ? (
609 <NativeHeaderToolbar.Menu inline>
610 <NativeHeaderToolbar.MenuAction
611 icon="eye"
612 isOn={resolvedActiveMode === "preview"}
613 onPress={() => setModeOverride({ path: relativePath, mode: "preview" })}
614 >
615 Preview
616 </NativeHeaderToolbar.MenuAction>
617 <NativeHeaderToolbar.MenuAction
618 icon="doc.text"
619 isOn={resolvedActiveMode === "source"}
620 onPress={() => setModeOverride({ path: relativePath, mode: "source" })}
621 >
622 Source
623 </NativeHeaderToolbar.MenuAction>
624 </NativeHeaderToolbar.Menu>
625 ) : null}
626 <NativeHeaderToolbar.MenuAction
627 icon="doc.on.doc"
628 onPress={() => copyTextWithHaptic(relativePath)}
629 >
630 Copy path
631 </NativeHeaderToolbar.MenuAction>
632 {isBrowserFile && typeof assetPreviewUri === "string" ? (
633 <NativeHeaderToolbar.MenuAction
634 icon="safari"
635 onPress={() => {
636 void tryOpenExternalUrl(assetPreviewUri, "file-preview");
637 }}
638 >
639 Open in Safari
640 </NativeHeaderToolbar.MenuAction>
641 ) : null}
642 {resolvedActiveMode === "preview" && (isBrowserFile || isImageFile) ? (
643 <NativeHeaderToolbar.MenuAction
644 icon="arrow.clockwise"
645 onPress={() => {
646 setPreviewRevision((current) => current + 1);
647 }}
648 >
649 Refresh
650 </NativeHeaderToolbar.MenuAction>
651 ) : null}
652 </NativeHeaderToolbar.Menu>
653 </NativeHeaderToolbar>
654 <FileContent
655 activeMode={resolvedActiveMode}
656 previewUri={previewUri}
657 fileContents={fileData?.contents ?? null}
658 fileError={fileQuery.error}
659 initialLine={targetLine}
660 relativePath={relativePath}
661 truncated={fileData?.truncated ?? false}
662 onRefresh={() => fileQuery.refresh()}
663 />
664 </View>
665 </ReviewHighlighterProvider>
666 );