import './index.scss';
import RichText from '~/components/richText';
import { FC } from 'react';

interface selfProps {
  getRichText: (html?: string) => void;
}

const GoodsIntroduce: FC<selfProps> = ({ getRichText }) => {
  const richTextChange = (html?: string) => {
    getRichText(html);
  };
  return (
    <div className='goods-introduce'>
      <div className='goods-introduce-title'>产品介绍图</div>
      <div className='goods-introduce-content'>
        <RichText value='' onChange={richTextChange} />
      </div>
    </div>
  );
};
export default GoodsIntroduce;
