({
children,
as: Component = 'div',
className,
...restProps
}: MarkdownContentPropsT)
| 10 | } |
| 11 | |
| 12 | export const MarkdownContent = ({ |
| 13 | children, |
| 14 | as: Component = 'div', |
| 15 | className, |
| 16 | ...restProps |
| 17 | }: MarkdownContentPropsT) => { |
| 18 | return ( |
| 19 | <Component |
| 20 | {...restProps} |
| 21 | className={cx(styles.markdownBody, 'markdown-body', className)} |
| 22 | {...(typeof children === 'string' |
| 23 | ? { dangerouslySetInnerHTML: { __html: children } } |
| 24 | : { children })} |
| 25 | /> |
| 26 | ) |
| 27 | } |
nothing calls this directly
no outgoing calls
no test coverage detected