pleshevski.ru/old/modules/work/WorkLink.ts

7 lines
248 B
TypeScript
Raw Normal View History

2023-06-20 16:30:27 +03:00
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) });