Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
`}
)
}
}
ReactExample.propTypes = {
codes: PropTypes.arrayOf(PropTypes.string),
decorateCodes: PropTypes.func,
includes: PropTypes.object,
/* eslint-disable react/no-unused-prop-types */
outputChildStyle: PropTypes.object,
outputStyle: PropTypes.object,
/* eslint-enable react/no-unused-prop-types */
themeName: PropTypes.oneOf(Object.keys(Theme.names)),
themeToggle: PropTypes.bool
}
ReactExample.defaultProps = {
orient: 'horizontal',
themeName: Theme.defaultName,
themeToggle: false
}
export default ReactExample
// TODO: combine fns
function handleKeyUp(evt) {
if (!isEscape(evt)) return
props.onClose(evt)
}
const content = (
<div>
{!props.disableCloseButton && isFunction(props.onClose) && (
)}
{props.children}
</div>
)
return props.modal ? (
const getOutputClassName = (props, state) =>
`output ${state.themeName === Theme.names.light ? 'outputLight' : ''} ${
props.orient === 'vertical' ? 'outputVertical' : 'outputHorizontal'
}`
handleThemeSelect(evt, index) {
const themeName = Theme.names[Object.keys(Theme.names)[index]]
this.setState({ themeName })
}
const InAppExample = _ => (
<div>
Page title}>
Menu Item
Menu Item
Menu Item
Menu Item
<div>
All the things
</div>
<code>
{`All the things`}</code></div>