import styles from "./html.module.scss"
import { RawHTML } from '@/components/RawHTML/RawHTML'
import classNames from 'classnames'

type HTMLTextProps = {
  width: "1/2" | "3/4",
  html: string
}

export const HTMLText = ({width, html}: HTMLTextProps) => {
  return (
    <div className={classNames({
      [styles.half]: width === "1/2",
      [styles.threeFourth]: width === "3/4"
    })}>
      <RawHTML html={html} />
    </div>
  )
}