Cupcake/app/components/common/article/index.tsx

16 lines
342 B
TypeScript

import { clsn } from "~/utils";
import styles from "./article.module.css";
interface ArticleProps {
className?: string;
html: string;
}
function Article({ className, html }: ArticleProps) {
return (
<article className={clsn(styles.article, className)} dangerouslySetInnerHTML={{ __html: html }} />
);
}
export default Article;