import { PureComponent } from 'react'; import cx from 'classnames'; import Circle from '../shapes/Circle'; import Rectangle from '../shapes/Rectangle'; import TextBlock from './TextBlock'; export interface IPlaceholderRichTextBlock { className?: string; style?: React.CSSProperties; rows?: number; shape?: string; size?: number; animate?: boolean; dashed?: boolean; widths?: number[]; dashSegments?: Array>; lineSpacing?: string | number; } export default class RichTextBlock extends PureComponent { static defaultProps = { style: {}, className: '', shape: 'circle', animate: true, dashed: true, size: 80, }; render() { const { className, style, rows, shape, size, animate, dashed, widths, dashSegments, lineSpacing, } = this.props; const classes = cx('zent-placeholder-richtext-block', className); const shapeStyle = { marginRight: 10 }; return (
{shape === 'circle' ? ( ) : ( )}
); } }