ant-design/components/avatar/index.tsx
vagusX 38cf5e8a75
docs: unify component export file as index.tsx ()
* docs: unify component export file as index.tsx

* docs: compatible with old anchors

* chore: clean

* test: update snapshot

* fix: window env

---------

Co-authored-by: Peach <scdzwyxst@gmail.com>
2024-07-23 22:22:24 +08:00

17 lines
357 B
TypeScript

import InternalAvatar from './avatar';
import Group from './group';
export type { AvatarProps } from './avatar';
export type { GroupProps } from './group';
export { Group };
type CompoundedComponent = typeof InternalAvatar & {
Group: typeof Group;
};
const Avatar = InternalAvatar as CompoundedComponent;
Avatar.Group = Group;
export default Avatar;