2022-05-07 14:31:54 +08:00
|
|
|
import type { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
|
|
import type { AvatarProps } from './avatar';
|
|
|
|
import InternalAvatar from './avatar';
|
2020-07-13 12:45:37 +08:00
|
|
|
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
|
2022-05-07 14:31:54 +08:00
|
|
|
extends ForwardRefExoticComponent<AvatarProps & RefAttributes<HTMLElement>> {
|
2020-07-13 12:45:37 +08:00
|
|
|
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;
|