1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-05-19 09:51:36 +07:00
verdaccio-ui/src/components/DetailContainer/DetailContainerContentReadm...
Juan Picado @jotadeveloper f761e36669
feat: enable dark mode
2020-03-02 22:05:24 +01:00

20 lines
498 B
TypeScript

import React from 'react';
import { preventXSS } from '../../utils/sec-utils';
import Readme from '../Readme';
import { ReadmeSpacing } from './styles';
interface Props {
description?: string;
}
const DetailContainerContentReadme: React.FC<Props> = ({ description }) => {
if (!description) {
return null;
}
const encodedReadme = preventXSS(description);
return <ReadmeSpacing><Readme description={encodedReadme} /></ReadmeSpacing>;
};
export default DetailContainerContentReadme;