app/components/post-backlinks.tsx
21 lines and 2 functions in DrDustinEdwards/dustinedwards-info, at commit 1590ba4 on 2026-10-24. This file on GitHub.
Functions
| Function | Lines | Complexity | Covered | CRAP | Mutation |
|---|---|---|---|---|---|
| PostBacklinks | 6 to 23 | 1 | No data: no coverage report in this map | No data: no coverage report in this map | No data: no mutants in this code |
| <anonymous:15> | 15 to 19 | 1 | No data: no coverage report in this map | No data: no coverage report in this map | No data: no mutants in this code |
Imports
It imports no other module of this repo. Imported by app/routes/blog.$slug.tsx.
Source
import { Link } from "react-router";
import type { Route } from "../routes/+types/blog.$slug";
/** The published posts that link here, re-checked against live rows by the loader. */
export function PostBacklinks({
backlinks,
}: {
backlinks: Route.ComponentProps["loaderData"]["post"]["backlinks"];
}) {
return (
<nav className="post-backlinks" aria-labelledby="backlinks-heading">
<p id="backlinks-heading">Linked from</p>
<ul>
{backlinks.map((item) => (
<li key={item.slug}>
<Link to={`/writing/${item.slug}`}>{item.title}</Link>
</li>
))}
</ul>
</nav>
);
}