import * as React from 'react'; import {withInfo} from '@storybook/addon-info'; import {boolean, withKnobs} from '@storybook/addon-knobs'; import {Switcher} from './../../index'; import {storyLayout} from '../../index.stories'; // eslint-disable-next-line no-restricted-syntax export default { title: 'Switcher', decorators: [withInfo, withKnobs, storyLayout] }; export const simpleSwitcher = () => { const [checked, setState] = React.useState(false); return ( <> setState(e)} /> ); };