mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-07-17 17:21:48 +00:00
19 lines
347 B
TypeScript
19 lines
347 B
TypeScript
import {LinkifyNewTab} from './linkify-new-tab';
|
|
|
|
interface Props {
|
|
lines: (React.ReactNode | string)[];
|
|
}
|
|
|
|
export function MultilineText(props: Props) {
|
|
return (
|
|
<>
|
|
{props.lines.map((line, index) => (
|
|
<div key={index}>
|
|
<LinkifyNewTab>{line}</LinkifyNewTab>
|
|
<br />
|
|
</div>
|
|
))}
|
|
</>
|
|
);
|
|
}
|