import * as React from 'react'; import classNames from 'classnames'; export interface SkeletonAvatarProps { prefixCls?: string; className?: string; style?: object; size?: 'large' | 'small' | 'default'; shape?: 'circle'| 'square'; } class Title extends React.Component { static defaultProps: Partial = { size: 'large', }; render() { const { prefixCls, className, style, size, shape } = this.props; const sizeCls = classNames({ [`${prefixCls}-lg`]: size === 'large', [`${prefixCls}-sm`]: size === 'small', }); const shapeCls = classNames({ [`${prefixCls}-circle`]: shape === 'circle', [`${prefixCls}-square`]: shape === 'square', }); return ( ); } } export default Title;