diff --git a/src/details/multiline-text.tsx b/src/details/multiline-text.tsx index 2a5a738..da45afd 100644 --- a/src/details/multiline-text.tsx +++ b/src/details/multiline-text.tsx @@ -1,15 +1,13 @@ -import * as React from 'react'; -import {injectIntl, WrappedComponentProps} from 'react-intl'; import Linkify from 'react-linkify'; interface Props { lines: (JSX.Element | string)[]; } -function joinLines(lines: (JSX.Element | string)[]) { +export function MultilineText(props: Props) { return ( <> - {lines.map((line, index) => ( + {props.lines.map((line, index) => (