import * as hotspot from './index' export default (attr) => { return new hotspot.default[attr.type](attr) }