mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
19 lines
517 B
TypeScript
19 lines
517 B
TypeScript
import * as React from 'react';
|
|
|
|
import type { ScreenSizeMap } from '../_util/responsiveObserver';
|
|
import type { SizeType } from '../config-provider/SizeContext';
|
|
|
|
/**
|
|
* 'default' is deprecated and will be removed in v7, please use `medium` instead.
|
|
*/
|
|
export type AvatarSize = SizeType | 'default' | number | ScreenSizeMap;
|
|
|
|
export interface AvatarContextType {
|
|
size?: AvatarSize;
|
|
shape?: 'circle' | 'square';
|
|
}
|
|
|
|
const AvatarContext = React.createContext<AvatarContextType>({});
|
|
|
|
export default AvatarContext;
|