2020-09-16 11:43:55 +08:00
|
|
|
import * as React from 'react';
|
2020-07-13 12:45:37 +08:00
|
|
|
import InternalAvatar, { AvatarProps } from './avatar';
|
|
|
|
import Group from './group';
|
2019-08-13 14:07:17 +08:00
|
|
|
|
2020-07-13 12:45:37 +08:00
|
|
|
export { AvatarProps } from './avatar';
|
|
|
|
export { GroupProps } from './group';
|
2017-05-28 14:20:59 +08:00
|
|
|
|
2020-07-13 12:45:37 +08:00
|
|
|
interface CompoundedComponent
|
|
|
|
extends React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLElement>> {
|
|
|
|
Group: typeof Group;
|
2017-05-28 14:20:59 +08:00
|
|
|
}
|
|
|
|
|
2020-07-13 12:45:37 +08:00
|
|
|
const Avatar = InternalAvatar as CompoundedComponent;
|
|
|
|
Avatar.Group = Group;
|
2020-06-12 10:36:53 +08:00
|
|
|
|
2020-07-13 12:45:37 +08:00
|
|
|
export { Group };
|
2020-06-12 10:36:53 +08:00
|
|
|
export default Avatar;
|