mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 21:48:19 +08:00
f0c105d262
* feat: remove the hardcode of `use client` * chore: update `@ant-design/tools` * test: update * fix: incorrect dictionary * chore: update dep * ci: check use client * chore: update ci * fix: should be LIB_DIR * ci: should only run in dist * chore: update check tsx files
21 lines
527 B
TypeScript
21 lines
527 B
TypeScript
import type { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
import type { AvatarProps } from './avatar';
|
|
import InternalAvatar from './avatar';
|
|
import Group from './group';
|
|
|
|
export type { AvatarProps } from './avatar';
|
|
export type { 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;
|