puerto 0.20.0

Puerto — Rust full-stack DDD framework CLI. Scaffolds Clean Architecture projects with auto-wired DI, SQLx support, and zero manual wiring. Formerly puerto-framework.
1
2
3
4
5
6
7
8
9
10
11
import { Link } from "wouter";

/** A reference on a detail screen: a link to the page of the item `id` under `path`, or "—". */
export function ReferenceLink({ path, id }: { path: string; id: string | null }) {
  if (id === null) return "—";
  return (
    <Link href={`${path}/${id}`} className="link">
      {id}
    </Link>
  );
}