import {object} from 'prop-types'; import React from 'react'; import Markdown from 'react-markdown'; import Code from './Code'; import Parameter from './Parameter'; function Class({cls, module, helper}) { const exportedName = module.getExportedName(cls.name); let importCode; if (exportedName === 'default') { importCode = `import ${cls.name} from '${module.id}';`; } else { importCode = `import {${exportedName}} from '${module.id}';`; } return (