import Icon, { IconProps } from './index'; import * as React from 'react'; const customCache = new Set(); export interface CustomIconOptions { namespace?: string; prefix?: string; cdnUrl?: string; extraCommonProps?: { [key: string]: any }; } export default function create(options: CustomIconOptions = {}): React.SFC { const { namespace, prefix = '', cdnUrl, extraCommonProps = {} } = options; /** * DOM API required. * Make sure in browser environment. * The Custom Icon will create a