mirror of
https://git.meshkee.com/novintrades/website.git
synced 2026-08-11 20:50:58 +04:30
15 lines
280 B
TypeScript
15 lines
280 B
TypeScript
type RichHtmlProps = {
|
|
html: string;
|
|
className?: string;
|
|
};
|
|
|
|
export default function RichHtml({ html, className }: RichHtmlProps) {
|
|
if (!html.trim()) return null;
|
|
return (
|
|
<div
|
|
className={className}
|
|
dangerouslySetInnerHTML={{ __html: html }}
|
|
/>
|
|
);
|
|
}
|