Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react';
import { props, t, skinnable } from '../utils';
import flattenDeep from 'lodash.flattendeep';
import tlds from 'tlds';
const linkify = require('linkify-it')().tlds(tlds);
export const Props = {
children: t.String,
id: t.maybe(t.String),
className: t.maybe(t.String),
style: t.maybe(t.Object)
};
/** A component that transforms `\n` in `<br>` and links in `<a>`
* @param children - The content of the paragraph
* @param paragraphSpacing - The space occupied by an empty line
*/
@skinnable()
@props(Props)
export default class FormattedText extends React.Component {
</a>