import React, { useState } from 'react';
import { storiesOf } from '@storybook/react';
import { boolean } from '@storybook/addon-knobs';
import QuestionIcon from 'components/Icon/icons/alert/question';
import { primary } from 'styles/colors';
import WalletIcon from 'components/Icon/icons/payments/wallet';
import Checkbox, { ButtonCheckbox } from './index';
import BaseApp from '../BaseApp';
storiesOf('Components/Checkbox', module)
.add('Basic', () => (
))
.add('With icon', () => (
}
/>
));
storiesOf('Components/ButtonCheckbox', module)
.add('Basic', () => {
const [checked, setChecked] = useState(false);
return (
e && setChecked(e.target.checked)}
checked={checked}
/>
);
})
.add('A Checked Button', () => {
const [checked, setChecked] = useState(true);
return (
e && setChecked(e.target.checked)}
checked={checked}
/>
);
})
.add('Without an Icon', () => {
const [checked, setChecked] = useState(false);
return (
e && setChecked(e.target.checked)}
checked={checked}
/>
);
})
.add('With a Secondary Label', () => {
const [checked, setChecked] = useState(false);
return (
e && setChecked(e.target.checked)}
checked={checked}
/>
);
})
.add('A Disabled Button', () => (
));