import { Link } from "@tanstack/react-router"; import { RelativeTime } from "~/ui/RelativeTime"; import { Button, buttonClass } from "~/ui/Button"; import { Callout } from "~/ui/Callout"; import { useBranchPushSuggestions } from "~/hooks/use-branch-push-suggestions"; import { cn } from "~/utils/cn"; import { Code } from "~/ui/Code"; type Props = { owner: string; repo: string; defaultBranch: string; className?: string }; export function BranchPushSuggestions({ owner, repo, defaultBranch, className }: Props) { const { pushes, dismiss } = useBranchPushSuggestions(owner, repo); if (pushes.length === 0) return null; return (
{push.branch}