mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
1719748a29
* chore: eslint add consistent-type-imports * fix avatar * Update Item.tsx
19 lines
518 B
TypeScript
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';
|
|
|
|
interface CompoundedComponent
|
|
extends ForwardRefExoticComponent<AvatarProps & RefAttributes<HTMLElement>> {
|
|
Group: typeof Group;
|
|
}
|
|
|
|
const Avatar = InternalAvatar as CompoundedComponent;
|
|
Avatar.Group = Group;
|
|
|
|
export { Group };
|
|
export default Avatar;
|