Skip to the content

Capsid menu

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

The functions of post-backlinks.tsx
FunctionLinesComplexityCoveredCRAPMutation
PostBacklinks6 to 231No data: no coverage report in this mapNo data: no coverage report in this mapNo data: no mutants in this code
<anonymous:15>15 to 191No data: no coverage report in this mapNo data: no coverage report in this mapNo 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>
  );
}