7 lines
253 B
TypeScript
7 lines
253 B
TypeScript
|
import { NonEmptyArray } from "../../../global.ts";
|
||
|
import { Role } from "../domain/mod.ts";
|
||
|
import { AnyNode, TextNode } from "ren/node.ts";
|
||
|
|
||
|
export const RoleList: (roles: NonEmptyArray<Role>) => AnyNode = (roles) =>
|
||
|
new TextNode(roles.join(", "));
|