mirror of
https://github.com/SomboChea/ui
synced 2024-05-19 09:51:36 +07:00
20 lines
498 B
TypeScript
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;
|