This repository was archived by the owner on Aug 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 128
Expand file tree
/
Copy pathcomment.tsx
More file actions
47 lines (47 loc) · 1.97 KB
/
comment.tsx
File metadata and controls
47 lines (47 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { With, relativeURL, wbr, __partials__, Compact, IfCond, IfNotCond, Markdown } from "../../lib";
import React from "react";
export const comment = (props) => (
<>
{With(props, props.comment, (superProps, props) => (
<>
{!!props.hasVisibleComponent && (
<>
{" "}
<div className="tsd-comment tsd-typography">
{!!props.shortText && (
<>
{" "}
<div className="lead">
<Markdown>{props.shortText}</Markdown>
</div>
</>
)}
{!!props.text && (
<>
{" "}
<Markdown>{props.text}</Markdown>
</>
)}
{!!props.tags && (
<>
{" "}
<dl className="tsd-comment-tags">
{props.tags.map((item, i) => (
<>
{" "}
<dt>{item.tagName}</dt>
<dd>
<Markdown>{item.text}</Markdown>
</dd>
</>
))}{" "}
</dl>
</>
)}{" "}
</div>
</>
)}
</>
))}
</>
);