@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
tsx 34 lines 939 Bytes
Raw
1 import { T, useGT } from "gt-react";
2
3 import type { PullRequestReplyAvailability } from "./pullRequestDetail.logic";
4
5 export function PullRequestMoreReplies({
6 moreReplies,
7 hasMoreReplies,
8 url,
9 }: PullRequestReplyAvailability) {
10 const gt = useGT();
11 if (!hasMoreReplies) return null;
12 return (
13 <div className="flex flex-wrap items-baseline gap-2 py-1 text-xs text-muted-foreground">
14 <span>
15 {moreReplies > 0
16 ? gt("{count, plural, one {{formatted} more reply} other {{formatted} more replies}}", {
17 count: moreReplies,
18 formatted: moreReplies.toLocaleString(),
19 })
20 : gt("More replies")}
21 </span>
22 {url ? (
23 <a
24 href={url}
25 target="_blank"
26 rel="noopener noreferrer"
27 className="hover:text-foreground hover:underline"
28 >
29 <T>View on host</T>
30 </a>
31 ) : null}
32 </div>
33 );
34 }