packages/remirror__react-components/src/icons/icons-context.tsx
/**
* @module
*
* Taken from
* https://github.com/react-icons/react-icons/blob/10199cca7abeb3efbc647090714daa279da45779/packages/react-icons/src/iconContext.tsx#L1-L19
*/
import { Context, createContext, CSSProperties, SVGAttributes } from 'react';
export interface IconContext {
color?: string;
size?: string;
className?: string;
style?: CSSProperties;
attr?: SVGAttributes<SVGElement>;
}
export const DefaultContext: IconContext = {
color: undefined,
size: undefined,
className: undefined,
style: undefined,
attr: undefined,
};
export const IconContext: Context<IconContext> = createContext(DefaultContext);
export const IconProvider = IconContext.Provider;