import React from 'react';
import { action } from '@storybook/addon-actions';
import { storiesOf } from '@storybook/react';
import { Button } from '../Button';
import { Alert } from '../Alert';
const simpleAlert = () => {
    Alert.alert('simple alert');
};
const titleAlert = () => {
    Alert.alert({ title: 'Test Title', text: 'test text, test text.' });
};
const confirmAlert = () => {
    Alert.alert({
        title: 'Are you sure?',
        text: 'You will not be able to recover this imaginary file!',
        showCancelButton: true,
        cancelButtonText: 'Cancel',
        confirmButtonText: 'Confirm',
        onConfirm: action('Confirm'),
        onCancel: action('Cancel')
    });
};
storiesOf('Alert', module)
    .add('simple', () => (<Button onPress={simpleAlert} title='Preview Simple Alert'/>))
    .add('w/ title', () => (<Button onPress={titleAlert} title='Preview Title Alert'/>))
    .add('w/ confirm', () => (<Button onPress={confirmAlert} title='Preview Confirm Alert'/>));
//# sourceMappingURL=Alert.story.js.map