import React, { useState } from 'react'; import { Story } from '@storybook/react'; import { Switch } from '../../components/data-entry/Switch'; import { SwitchProps } from '../../components/data-entry/Switch/Switch'; export default { component: Switch, title: 'Data-Entry/Switch' }; export const Basic: Story> = (args) => { const [state, setState] = useState({ value: false }); return ; }; export const WithLabel: Story> = (args) => { const [state, setState] = useState({ value: false }); return ; }; export const WithCustomLabel: Story> = (args) => { const [state, setState] = useState({ value: false }); return ( ); };