import { ArrowLeftIcon, FileDiffIcon } from "lucide-react"; import type { ComponentProps, ReactNode } from "react"; import { cn } from "~/lib/utils"; import { Toggle, ToggleGroup } from "../ui/toggle-group"; import { PullRequestMetaLine } from "./pullRequestPresentation"; export function PullRequestDetailHeaderBody({ title, author, updated, checkout, base, head, files, diffStat, }: { title: ReactNode; author: ReactNode; updated: ReactNode; checkout?: ReactNode; base: ReactNode; head: ReactNode; files: ReactNode; diffStat: ReactNode; }) { return (
{title}
{author} {updated} {checkout}
{base} {head} {files} {diffStat}
); } export function PullRequestDetailTitleRow({ className, ...props }: ComponentProps<"div">) { return (
); } export function PullRequestDetailTabBar({ tabs, value, onValueChange, onTabIntent, inert, children, }: { tabs: ReadonlyArray<{ readonly value: Tab; readonly label: string }>; value: Tab; onValueChange?: (tab: Tab) => void; onTabIntent?: (tab: Tab) => void; inert?: boolean; children?: ReactNode; }) { return ( ); } export function PullRequestChecksStatusLine({ icon, label, className, ...props }: Omit, "children"> & { icon: ReactNode; label: ReactNode }) { return ( {icon} {label} ); }