import { Link } from "@tanstack/react-router"; import type { getProject } from "~/fns/projects"; export type ProjectData = Awaited>; export type ProjectItem = ProjectData["items"][number]; export type ProjectField = ProjectData["fields"][number]; /** Title cell for a project item: a link to the issue/PR, or the draft note text. */ export function ItemTitle({ item }: { item: ProjectItem }) { if (!item.issue) return {item.note}; const { issue } = item; return ( {issue.isPull ? "⇄" : "●"} {issue.title} {issue.repo}#{issue.number} ); }