pleshevski.ru/modules/work/WorkLink.ts
Dmitriy Pleshevskiy 406429cbb5
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
move works to the module
2023-06-20 16:30:27 +03:00

6 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) });