import * as React from 'react'; import { ScreenSizeMap } from '../_util/responsiveObserve'; export type AvatarSize = 'large' | 'small' | 'default' | number | ScreenSizeMap; const SizeContext = React.createContext('default'); export interface SizeContextProps { size?: AvatarSize; } export const SizeContextProvider: React.FC = ({ children, size }) => ( {originSize => ( {children} )} ); export default SizeContext;