Open History to see the last commit
1import {
2 capitalizeTerm,
3 sourceControlClients,
4} from "@t3tools/client-runtime/source-control-clients";
5import { useAtomCommand } from "~/state/use-atom-command";
6import type {
7 EnvironmentId,
8 PullRequestActor,
9 PullRequestComment,
10 PullRequestDetailView,
11 PullRequestRef,
12 ScopedThreadRef,
13} from "@t3tools/contracts";
14import {
15 ChevronDownIcon,
16 CircleCheckIcon,
17 ExternalLinkIcon,
18 FileCode2Icon,
19 GitCommitHorizontalIcon,
20 MessageSquareIcon,
21} from "lucide-react";
22import { useState, type ReactNode } from "react";
23
24import { cn } from "~/lib/utils";
25import { readLocalApi } from "~/localApi";
26import { pullRequestEnvironment } from "~/state/pullRequests";
27import { RelativeTime } from "~/components/RelativeTime";
28
29import { Button } from "../ui/button";
30import { PullRequestEditButton } from "./PullRequestEditButton";
31import { Collapsible, CollapsiblePanel, CollapsibleTrigger } from "../ui/collapsible";
32import { toastManager } from "../ui/toast";
33import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
34import {
35 buildPullRequestTimeline,
36 groupPullRequestTimelineConversations,
37 isPullRequestVerdictStale,
38 newestPullRequestCommitAt,
39 pullRequestReviewOutcome,
40 type PullRequestReviewOutcome,
41 type PullRequestTimelineEvent,
42 type PullRequestTimelineThread,
43} from "./pullRequestDetail.logic";
44import { canEditPullRequestComment } from "./pullRequestEditing.logic";
45import { PullRequestMarkdown } from "./PullRequestMarkdown";
46import { PullRequestMoreReplies } from "./PullRequestMoreReplies";
47import { PullRequestMarkdownEditor } from "./PullRequestMarkdownEditor";
48import { PullRequestReactionBar } from "./PullRequestReactions";
49import {
50 PullRequestActorAvatar,
51 PullRequestDiffStat,
52 PullRequestMetaLine,
53 PullRequestReviewOutcomeIcon,
54 pullRequestReviewOutcomeLabel,
55 pullRequestReviewOutcomeStaleLabel,
56 pullRequestReviewOutcomeToneClassName,
57} from "./pullRequestPresentation";
58import { PullRequestGlyph } from "./pullRequestIcons";
59
60interface ReactionSurface {
61 readonly canReact: boolean;
62 readonly environmentId: EnvironmentId;
63 readonly threadRef: ScopedThreadRef | null;
64 readonly reference: PullRequestRef;
65 readonly onRefresh: () => void;
66}
67
68function TimelineBody({
69 body,
70 markdown,
71 cwd,
72 environmentId,
73 threadRef,
74}: {
75 body: string;
76 markdown: boolean;
77 cwd: string;
78 environmentId: EnvironmentId;
79 threadRef: ScopedThreadRef | null;
80}) {
81 return (
82 <div className="mt-3">
83 {markdown ? (
84 <PullRequestMarkdown
85 text={body}
86 cwd={cwd}
87 environmentId={environmentId}
88 threadRef={threadRef}
89 />
90 ) : (
91 <p className="whitespace-pre-wrap text-xs text-muted-foreground">{body}</p>
92 )}
93 </div>
94 );
95}
96
97function ActorName({ actor }: { actor: PullRequestActor | null }) {
98 return <span className="font-semibold text-foreground">{actor?.login ?? "ghost"}</span>;
99}
100
101function TimelineMarker({
102 children,
103 className,
104}: {
105 children: ReactNode;
106 className?: string | undefined;
107}) {
108 return (
109 <span
110 className={cn(
111 "absolute left-0 top-1/2 z-10 flex size-8 -translate-y-1/2 items-center justify-center bg-background",
112 className,
113 )}
114 >
115 {children}
116 </span>
117 );
118}
119
120function IconMarker({ icon, className }: { icon: ReactNode; className?: string | undefined }) {
121 return (
122 <TimelineMarker className={className}>
123 <span className="flex size-7 items-center justify-center bg-background text-muted-foreground">
124 {icon}
125 </span>
126 </TimelineMarker>
127 );
128}
129
130function ActorTimelineMarker({
131 actors,
132 className,
133 fallback,
134 muted = false,
135}: {
136 actors: ReadonlyArray<PullRequestActor>;
137 className?: string | undefined;
138 fallback: ReactNode;
139 muted?: boolean;
140}) {
141 const actor = actors[0];
142 return actor === undefined ? (
143 <IconMarker className={className} icon={fallback} />
144 ) : (
145 <TimelineMarker className={className}>
146 <PullRequestActorAvatar
147 actor={actor}
148 className={cn(
149 "size-7 bg-muted text-3xs transition-opacity",
150 muted && "opacity-45 grayscale",
151 )}
152 />
153 </TimelineMarker>
154 );
155}
156
157function friendlyReviewState(value: string): string {
158 const words = value.toLowerCase().replaceAll("_", " ").replaceAll("-", " ");
159 return words.replace(/^\w/u, (letter) => letter.toUpperCase());
160}
161
162function ReviewStateBadge({ state }: { state: string }) {
163 return (
164 <span className="text-3xs font-medium text-muted-foreground">{friendlyReviewState(state)}</span>
165 );
166}
167
168function OpenOnHostButton({ url, onOpen }: { url: string | null; onOpen: (url: string) => void }) {
169 return url === null ? null : (
170 <Button
171 size="icon-xs"
172 variant="ghost-muted"
173 className="-mr-1 shrink-0"
174 aria-label="Open activity on host"
175 onClick={() => onOpen(url)}
176 >
177 <ExternalLinkIcon className="size-3" />
178 </Button>
179 );
180}
181
182function ConversationCard({
183 event,
184 editable,
185 cwd,
186 onOpen,
187 reactions,
188 showPath = true,
189}: {
190 event: PullRequestTimelineEvent;
191 editable: PullRequestComment | null;
192 cwd: string;
193 onOpen: (url: string) => void;
194 reactions: ReactionSurface;
195 showPath?: boolean;
196}) {
197 const [editing, setEditing] = useState(false);
198 const [saving, setSaving] = useState(false);
199 const updateComment = useAtomCommand(pullRequestEnvironment.updateComment, {
200 reportFailure: false,
201 });
202
203 const save = async (body: string) => {
204 // A review's own summary is not a kind any host rewrites, which is why `editable` is never
205 // one; the check is here because the comment's own type still allows it.
206 if (editable === null || saving || editable.kind === "review") return;
207 setSaving(true);
208 const result = await updateComment({
209 environmentId: reactions.environmentId,
210 input: { ...reactions.reference, commentId: editable.id, kind: editable.kind, body },
211 });
212 setSaving(false);
213 if (result._tag === "Failure") {
214 toastManager.add({ type: "error", title: "Could not save the comment" });
215 return;
216 }
217 setEditing(false);
218 reactions.onRefresh();
219 };
220
221 return (
222 <article className="group py-2">
223 <div className="px-2">
224 <div className="flex min-w-0 flex-wrap items-center gap-2">
225 <div className="min-w-0 flex-1">
226 <div className="flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1 text-xs">
227 <ActorName actor={event.actor} />
228 <span className="text-muted-foreground">{event.title}</span>
229 {event.reviewState ? <ReviewStateBadge state={event.reviewState} /> : null}
230 </div>
231 <PullRequestMetaLine className="mt-1 flex-wrap text-2xs text-muted-foreground">
232 <span>
233 <RelativeTime timestamp={event.at} />
234 </span>
235 {showPath && event.path ? (
236 <span className="inline-flex min-w-0 items-center gap-1">
237 <FileCode2Icon aria-hidden className="size-3 shrink-0" />
238 <span className="truncate">{event.path}</span>
239 </span>
240 ) : null}
241 </PullRequestMetaLine>
242 </div>
243 {editable !== null && !editing ? (
244 <PullRequestEditButton aria-label="Edit comment" onClick={() => setEditing(true)} />
245 ) : null}
246 {reactions.canReact || event.reactions.length > 0 ? (
247 <PullRequestReactionBar
248 className="ml-auto justify-end"
249 reactions={event.reactions}
250 canReact={reactions.canReact}
251 subjectId={event.id}
252 environmentId={reactions.environmentId}
253 reference={reactions.reference}
254 onRefresh={reactions.onRefresh}
255 />
256 ) : null}
257 <OpenOnHostButton url={event.url} onOpen={onOpen} />
258 </div>
259 </div>
260 {editing && editable !== null ? (
261 <div className="px-2 pb-2 pt-3">
262 <PullRequestMarkdownEditor
263 value={editable.body}
264 cwd={cwd}
265 environmentId={reactions.environmentId}
266 threadRef={reactions.threadRef}
267 label="Edit comment"
268 saving={saving}
269 onSave={(body) => void save(body)}
270 onCancel={() => setEditing(false)}
271 />
272 </div>
273 ) : event.body ? (
274 <div className="px-2 pb-2">
275 <TimelineBody
276 body={event.body}
277 markdown={event.markdown}
278 cwd={cwd}
279 environmentId={reactions.environmentId}
280 threadRef={reactions.threadRef}
281 />
282 </div>
283 ) : null}
284 </article>
285 );
286}
287
288function uniqueConversationActors(events: ReadonlyArray<PullRequestTimelineEvent>) {
289 const actors = new Map<string, PullRequestActor>();
290 for (const event of events) {
291 const actor = event.actor;
292 if (actor !== null && !actors.has(actor.login)) actors.set(actor.login, actor);
293 }
294 return [...actors.values()];
295}
296
297function ConversationGroup({
298 events,
299 editable,
300 cwd,
301 onOpen,
302 reactions,
303}: {
304 events: ReadonlyArray<PullRequestTimelineEvent>;
305 editable: ReadonlyMap<string, PullRequestComment>;
306 cwd: string;
307 onOpen: (url: string) => void;
308 reactions: ReactionSurface;
309}) {
310 const [open, setOpen] = useState(false);
311 const actors = uniqueConversationActors(events);
312 const first = events[0];
313 if (first === undefined) return null;
314
315 return (
316 <div className="relative mb-5 pl-12 [contain-intrinsic-block-size:48px] [content-visibility:auto]">
317 <ActorTimelineMarker
318 actors={actors}
319 className="top-6"
320 fallback={<MessageSquareIcon className="size-3.5" />}
321 muted={!open}
322 />
323 <Collapsible open={open} onOpenChange={setOpen}>
324 <div>
325 <CollapsibleTrigger
326 className={cn(
327 "flex w-full min-w-0 items-center gap-3 py-2 text-left transition-opacity hover:opacity-100",
328 open ? "text-foreground opacity-100" : "text-muted-foreground opacity-55",
329 )}
330 >
331 <span className="min-w-0 flex-1">
332 <span className="block text-xs font-semibold">
333 {events.length.toLocaleString()} {events.length === 1 ? "comment" : "comments"}
334 </span>
335 <span className="block truncate text-3xs text-muted-foreground">
336 {actors.length.toLocaleString()} {actors.length === 1 ? "author" : "authors"} ·{" "}
337 <RelativeTime timestamp={first.at} />
338 </span>
339 </span>
340 <ChevronDownIcon
341 aria-hidden
342 className={cn(
343 "size-3.5 shrink-0 text-muted-foreground transition-transform",
344 open && "rotate-180",
345 )}
346 />
347 </CollapsibleTrigger>
348 <CollapsiblePanel>
349 {open ? (
350 <div className="mt-1 space-y-1">
351 {events.map((event) => (
352 <ConversationCard
353 // Named with the pull request too: a remark's id is the host's own, and two
354 // pull requests can hand out the same one — which would leave one card's open
355 // editor standing over the other's remark.
356 key={`${reactions.reference.projectId}#${reactions.reference.number}:${event.id}`}
357 event={event}
358 editable={editable.get(event.id) ?? null}
359 cwd={cwd}
360 onOpen={onOpen}
361 reactions={reactions}
362 />
363 ))}
364 </div>
365 ) : null}
366 </CollapsiblePanel>
367 </div>
368 </Collapsible>
369 </div>
370 );
371}
372
373function ReviewThreadEvent({
374 event,
375 thread,
376 editable,
377 cwd,
378 onOpen,
379 reactions,
380}: {
381 event: PullRequestTimelineEvent;
382 thread: PullRequestTimelineThread;
383 editable: ReadonlyMap<string, PullRequestComment>;
384 cwd: string;
385 onOpen: (url: string) => void;
386 reactions: ReactionSurface;
387}) {
388 const dismissed = pullRequestReviewOutcome(event.reviewState) === "dismissed";
389 const [expanded, setExpanded] = useState(!thread.isResolved && !dismissed);
390 const replyCount = thread.replies.length + thread.moreReplies;
391
392 return (
393 <div className="group relative mb-5 pl-12 [contain-intrinsic-block-size:48px] [content-visibility:auto]">
394 <ActorTimelineMarker
395 actors={event.actor ? [event.actor] : []}
396 className="top-4"
397 fallback={<MessageSquareIcon className="size-3.5" />}
398 muted={!expanded}
399 />
400 <button
401 type="button"
402 className="flex w-full min-w-0 items-center gap-2 px-2 py-2 text-left text-2xs text-muted-foreground hover:text-foreground"
403 aria-expanded={expanded}
404 onClick={() => setExpanded((current) => !current)}
405 >
406 <FileCode2Icon aria-hidden className="size-3 shrink-0" />
407 <span className="min-w-0 truncate font-mono">
408 {thread.line === null ? thread.path : `${thread.path}:${thread.line}`}
409 </span>
410 {thread.isResolved ? (
411 <span className="inline-flex shrink-0 items-center gap-1 font-medium text-success-foreground">
412 <CircleCheckIcon aria-hidden className="size-3" />
413 Resolved
414 </span>
415 ) : null}
416 {dismissed ? <span className="shrink-0 font-medium">Review dismissed</span> : null}
417 {thread.isOutdated ? <span className="shrink-0 font-medium">Outdated</span> : null}
418 {expanded ? null : (
419 <span className="shrink-0">
420 · {event.actor?.login ?? "ghost"}
421 {replyCount > 0 ? (
422 <>
423 {" "}
424 · {replyCount.toLocaleString()} {replyCount === 1 ? "reply" : "replies"}
425 </>
426 ) : null}
427 </span>
428 )}
429 <ChevronDownIcon
430 aria-hidden
431 className={cn("ml-auto size-3.5 shrink-0 transition-transform", expanded && "rotate-180")}
432 />
433 </button>
434 {expanded ? (
435 <>
436 <ConversationCard
437 event={event}
438 editable={editable.get(event.id) ?? null}
439 cwd={cwd}
440 onOpen={onOpen}
441 reactions={reactions}
442 showPath={false}
443 />
444 {thread.replies.length > 0 ? (
445 <div className="ml-2 space-y-1 border-l border-border/60 pl-3">
446 {thread.replies.map((reply) => (
447 <ConversationCard
448 key={reply.id}
449 event={reply}
450 editable={editable.get(reply.id) ?? null}
451 cwd={cwd}
452 onOpen={onOpen}
453 reactions={reactions}
454 showPath={false}
455 />
456 ))}
457 </div>
458 ) : null}
459 </>
460 ) : null}
461 {thread.hasMoreReplies ? (
462 <div className="px-2">
463 <PullRequestMoreReplies {...thread} />
464 </div>
465 ) : null}
466 </div>
467 );
468}
469
470function CommitEvent({
471 event,
472 onOpen,
473}: {
474 event: PullRequestTimelineEvent;
475 onOpen: (oid: string) => void;
476}) {
477 return (
478 <button
479 type="button"
480 className="group relative mb-5 block w-full cursor-pointer rounded-sm pl-12 text-left outline-none [contain-intrinsic-block-size:48px] [content-visibility:auto] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring"
481 aria-label={`View commit ${event.id}`}
482 onClick={() => onOpen(event.id)}
483 >
484 <ActorTimelineMarker
485 actors={event.commitAuthors}
486 fallback={<GitCommitHorizontalIcon className="size-3.5" />}
487 />
488 <div className="flex min-w-0 items-center gap-2.5 py-1.5">
489 <div className="min-w-0 flex-1">
490 <div className="truncate text-xs font-semibold text-foreground transition-colors group-hover:text-primary">
491 {event.body ?? "Untitled commit"}
492 </div>
493 <div className="mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-3xs text-muted-foreground">
494 <code className="font-mono">{event.id.slice(0, 7)}</code>
495 <span>
496 <RelativeTime timestamp={event.at} />
497 </span>
498 </div>
499 </div>
500 {event.additions !== null && event.deletions !== null ? (
501 <PullRequestDiffStat
502 additions={event.additions}
503 deletions={event.deletions}
504 className="ml-auto shrink-0 font-mono text-3xs"
505 />
506 ) : null}
507 </div>
508 </button>
509 );
510}
511
512function LifecycleEvent({ event, term }: { event: PullRequestTimelineEvent; term: string }) {
513 const title = capitalizeTerm(term);
514 const presentation =
515 event.kind === "opened"
516 ? {
517 icon: <PullRequestGlyph.pullRequest className="size-3.5" />,
518 label: `${title} opened`,
519 }
520 : event.kind === "merged"
521 ? {
522 icon: <PullRequestGlyph.merged className="size-3.5" />,
523 label: `${title} merged`,
524 }
525 : {
526 icon: <PullRequestGlyph.closed className="size-3.5" />,
527 label: `${title} closed`,
528 };
529
530 return (
531 <div className="relative mb-5 pl-12 [contain-intrinsic-block-size:48px] [content-visibility:auto]">
532 <IconMarker icon={presentation.icon} />
533 <div className="py-1.5 text-xs">
534 <div className="flex flex-wrap items-center gap-1.5">
535 {event.actor ? <ActorName actor={event.actor} /> : null}
536 <span className="font-semibold text-foreground">{presentation.label}</span>
537 </div>
538 <div className="mt-0.5 text-2xs text-muted-foreground">
539 <RelativeTime timestamp={event.at} />
540 </div>
541 </div>
542 </div>
543 );
544}
545
546function ReviewVerdictEvent({
547 event,
548 outcome,
549 stale,
550 cwd,
551 onOpen,
552 reactions,
553}: {
554 event: PullRequestTimelineEvent;
555 outcome: PullRequestReviewOutcome;
556 stale: boolean;
557 cwd: string;
558 onOpen: (url: string) => void;
559 reactions: ReactionSurface;
560}) {
561 return (
562 <div className="group relative mb-5 pl-12 [contain-intrinsic-block-size:48px] [content-visibility:auto]">
563 <ActorTimelineMarker
564 actors={event.actor ? [event.actor] : []}
565 className="top-6"
566 fallback={<PullRequestReviewOutcomeIcon outcome={outcome} />}
567 />
568 <div className="flex min-w-0 flex-wrap items-center gap-2 py-1.5">
569 <div className="min-w-0 flex-1">
570 <div className="flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1 text-xs">
571 <ActorName actor={event.actor} />
572 <Tooltip disabled={!stale}>
573 <TooltipTrigger
574 render={
575 <span
576 className={cn(
577 "font-medium lowercase",
578 stale
579 ? "text-muted-foreground opacity-70"
580 : pullRequestReviewOutcomeToneClassName(outcome),
581 )}
582 />
583 }
584 >
585 {pullRequestReviewOutcomeLabel(outcome)}
586 {stale ? <span className="sr-only">, before the latest commits</span> : null}
587 </TooltipTrigger>
588 <TooltipPopup>{pullRequestReviewOutcomeStaleLabel(outcome)}</TooltipPopup>
589 </Tooltip>
590 </div>
591 <div className="mt-0.5 flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1">
592 <PullRequestMetaLine className="flex-wrap text-2xs text-muted-foreground">
593 <span>
594 <RelativeTime timestamp={event.at} />
595 </span>
596 {event.path ? (
597 <span className="inline-flex min-w-0 items-center gap-1">
598 <FileCode2Icon aria-hidden className="size-3 shrink-0" />
599 <span className="truncate">{event.path}</span>
600 </span>
601 ) : null}
602 </PullRequestMetaLine>
603 </div>
604 </div>
605 {reactions.canReact || event.reactions.length > 0 ? (
606 <PullRequestReactionBar
607 className="ml-auto justify-end"
608 reactions={event.reactions}
609 canReact={reactions.canReact}
610 subjectId={event.id}
611 environmentId={reactions.environmentId}
612 reference={reactions.reference}
613 onRefresh={reactions.onRefresh}
614 />
615 ) : null}
616 <OpenOnHostButton url={event.url} onOpen={onOpen} />
617 </div>
618 {event.body ? (
619 <TimelineBody
620 body={event.body}
621 markdown={event.markdown}
622 cwd={cwd}
623 environmentId={reactions.environmentId}
624 threadRef={reactions.threadRef}
625 />
626 ) : null}
627 </div>
628 );
629}
630
631export function PullRequestTimelineTab({
632 scrollerRef,
633 detail,
634 environmentId,
635 threadRef = null,
636 reference,
637 order,
638 onOpenCommit,
639 onRefresh,
640}: {
641 scrollerRef: (node: HTMLDivElement | null) => void;
642 detail: PullRequestDetailView;
643 environmentId: EnvironmentId;
644 threadRef?: ScopedThreadRef | null;
645 reference: PullRequestRef;
646 order: "newest" | "oldest";
647 onOpenCommit: (oid: string) => void;
648 onRefresh: () => void;
649}) {
650 const events = buildPullRequestTimeline(detail);
651 const term = sourceControlClients.get(detail.provider).changeRequest.singular;
652 const newestCommitAt = newestPullRequestCommitAt(detail.commits);
653 const reactions: ReactionSurface = {
654 canReact: detail.capabilities.reactions === true,
655 environmentId,
656 threadRef,
657 reference,
658 onRefresh,
659 };
660 const editable = new Map(
661 events
662 .flatMap((event) => [event, ...(event.thread?.replies ?? [])])
663 .flatMap((event) => (event.comment ? [event.comment] : []))
664 .filter((comment) => canEditPullRequestComment(detail, comment))
665 .map((comment) => [comment.id, comment] as const),
666 );
667 const orderedEvents = order === "newest" ? events : events.toReversed();
668 const rows = groupPullRequestTimelineConversations(orderedEvents);
669 const openOnHost = (url: string) => {
670 void readLocalApi()?.shell.openExternal(url);
671 };
672
673 return (
674 <div ref={scrollerRef} className="scrollbar-gutter-both h-full overflow-y-auto px-4 py-5">
675 <div className="mx-auto max-w-3xl">
676 <div className="relative">
677 <span aria-hidden className="absolute bottom-5 left-[15px] top-1 w-px bg-border/45" />
678 {rows.map((row) => {
679 if (row.kind === "comments") {
680 return (
681 <ConversationGroup
682 key={`comments:${row.events[0]?.id ?? "empty"}`}
683 events={row.events}
684 editable={editable}
685 cwd={detail.workspaceRoot}
686 onOpen={openOnHost}
687 reactions={reactions}
688 />
689 );
690 }
691 const event = row.event;
692 if (event.thread !== undefined) {
693 return (
694 <ReviewThreadEvent
695 key={`${reactions.reference.projectId}#${reactions.reference.number}:thread:${event.id}:${event.thread.isResolved}:${pullRequestReviewOutcome(event.reviewState) === "dismissed"}`}
696 event={event}
697 thread={event.thread}
698 editable={editable}
699 cwd={detail.workspaceRoot}
700 onOpen={openOnHost}
701 reactions={reactions}
702 />
703 );
704 }
705 if (event.kind === "commit") {
706 return <CommitEvent key={event.id} event={event} onOpen={onOpenCommit} />;
707 }
708 const outcome = pullRequestReviewOutcome(event.reviewState);
709 if (outcome !== null) {
710 return (
711 <ReviewVerdictEvent
712 key={event.id}
713 event={event}
714 outcome={outcome}
715 stale={isPullRequestVerdictStale(event.at, newestCommitAt)}
716 cwd={detail.workspaceRoot}
717 onOpen={openOnHost}
718 reactions={reactions}
719 />
720 );
721 }
722 return <LifecycleEvent key={event.id} event={event} term={term} />;
723 })}
724 </div>
725
726 {events.length === 0 ? (
727 <div className="flex flex-col items-center justify-center py-16 text-center text-muted-foreground">
728 <PullRequestGlyph.pullRequest className="mb-2 size-5" />
729 <p className="text-xs">No activity yet.</p>
730 </div>
731 ) : null}
732 </div>
733 </div>
734 );
735}