feat : update

This commit is contained in:
2026-09-04 23:30:42 +07:00 Unverified
parent 890b88d4f1
commit b4f9fb0abb
12 changed files with 689 additions and 196 deletions
+19
View File
@@ -0,0 +1,19 @@
import { cn } from "@/lib/utils";
import { sanitizeRichTextHtml } from "@/lib/rich-text";
export function RichTextContent({
html,
className,
}: {
html: string;
className?: string;
}) {
if (!html) return null;
return (
<div
className={cn("prose prose-sm prose-invert max-w-none leading-snug [&>p]:m-0", className)}
dangerouslySetInnerHTML={{ __html: sanitizeRichTextHtml(html) }}
/>
);
}