mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 07:09:55 +08:00
21 lines
517 B
TypeScript
21 lines
517 B
TypeScript
import type { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
import type { AvatarProps } from './avatar';
|
|
import InternalAvatar from './avatar';
|
|
import Group from './group';
|
|
|
|
export { AvatarProps } from './avatar';
|
|
export { GroupProps } from './group';
|
|
export { Group };
|
|
|
|
type CompoundedComponent = ForwardRefExoticComponent<
|
|
AvatarProps & RefAttributes<HTMLSpanElement>
|
|
> & {
|
|
Group: typeof Group;
|
|
};
|
|
|
|
const Avatar = InternalAvatar as CompoundedComponent;
|
|
|
|
Avatar.Group = Group;
|
|
|
|
export default Avatar;
|