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';
|
2022-06-22 14:57:09 +08:00
|
|
|
export { Group };
|
2017-05-28 14:20:59 +08:00
|
|
|
|
2022-09-29 21:38:14 +08:00
|
|
|
type CompoundedComponent = ForwardRefExoticComponent<
|
|
|
|
AvatarProps & RefAttributes<HTMLSpanElement>
|
|
|
|
> & {
|
2020-07-13 12:45:37 +08:00
|
|
|
Group: typeof Group;
|
2022-09-29 21:38:14 +08:00
|
|
|
};
|
2017-05-28 14:20:59 +08:00
|
|
|
|
2020-07-13 12:45:37 +08:00
|
|
|
const Avatar = InternalAvatar as CompoundedComponent;
|
2022-09-29 21:38:14 +08:00
|
|
|
|
2020-07-13 12:45:37 +08:00
|
|
|
Avatar.Group = Group;
|
2020-06-12 10:36:53 +08:00
|
|
|
|
|
|
|
export default Avatar;
|