peer-at-code-web/ui/ToHTML.tsx
2023-02-04 22:54:51 +01:00

12 lines
281 B
TypeScript

import { cn } from '@/lib/utils';
interface ToHTMLProps {
html: string;
className?: string;
}
export default function ToHTML({ html, className }: ToHTMLProps) {
return (
<div className={cn('select-none', className)} dangerouslySetInnerHTML={{ __html: html }} />
);
}