Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default (props) => {
const { component, examples, hero, properties } = props;
const componentDoc = getDocAsJSON(component);
const propertiesNode = componentDoc.properties.map((property, index) => {
let defaultVaule = '';
if (property.defaultValue) {
defaultVaule = [
`The default is `,
<b>
{property.defaultValue.toString()}
</b>,
'.'
];
}
let format = `{${property.format}}`.replace(/,/g, '|');
if (property.format === 'boolean') {
format = '{true|false}';
if (typeof property.defaultValue === 'undefined') {