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