7 lines
248 B
TypeScript
7 lines
248 B
TypeScript
|
import { AnyNode } from "ren/node.ts";
|
||
|
import { Work, work as w } from "./domain/mod.ts";
|
||
|
import { Link } from "../../uikit/link.ts";
|
||
|
|
||
|
export const WorkLink: (work: Work) => AnyNode = (work) =>
|
||
|
Link(work.name, { href: w.getExternalLink(work) });
|