mirror of
https://github.com/vercel/commerce.git
synced 2025-03-27 07:45:53 +00:00
17 lines
314 B
TypeScript
17 lines
314 B
TypeScript
import cn from 'classnames'
|
|
import s from './HTMLContent.module.css'
|
|
|
|
type Props = {
|
|
className?: 'string'
|
|
html: string
|
|
}
|
|
|
|
export default function HTMLContent({ className, html }: Props) {
|
|
return (
|
|
<div
|
|
className={cn(s.root, className)}
|
|
dangerouslySetInnerHTML={{ __html: html }}
|
|
/>
|
|
)
|
|
}
|