ant-design/components/avatar/index.tsx
2022-06-22 14:57:09 +08:00

19 lines
518 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 };
interface CompoundedComponent
extends ForwardRefExoticComponent<AvatarProps & RefAttributes<HTMLElement>> {
Group: typeof Group;
}
const Avatar = InternalAvatar as CompoundedComponent;
Avatar.Group = Group;
export default Avatar;