Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* eslint-disable */
import { configure, setAddon } from '@storybook/react'
import { setOptions } from '@storybook/addon-options'
import JSXAddon from 'storybook-addon-jsx'
import params from '../params'
if (
typeof window === 'object' &&
window.navigator &&
/node\.js/i.test(window.navigator.userAgent)
) {
var addons = require('@storybook/addons').default
var Channel = require('@storybook/channels').default
addons.setChannel(
new Channel({
transport: {
setHandler: function() {},
send: function() {},
},
})
)
}
setOptions({
downPanelInRight: true,
hierarchySeparator: /\./,
name: params.projectName,
url: params.projectUrl,
})
setAddon(JSXAddon)