import React, {PropTypes, PureComponent} from 'react'; import autobind from 'autobind-decorator'; import {Dropdown, DropdownButton, DropdownDivider, DropdownItem} from '../base/dropdown'; import Link from '../base/link'; import {showPrompt} from '../modals/index'; @autobind class ImportExport extends PureComponent { _handleImportUri () { showPrompt({ title: 'Import Data from URL', submitName: 'Fetch and Import', label: 'URL', placeholder: 'https://website.com/insomnia-import.json', onComplete: uri => { this.props.handleImportUri(uri); } }); } render () { const { handleImportFile, handleExportAll, handleExportWorkspace } = this.props; return (

Import format will be automatically detected (Insomnia, Postman v2, HAR, Curl)

Don't see your format here? {' '} Add Your Own.

Export Data Choose Export Type Current Workspace All Workspaces    Import Data Choose Import Type From File From URL

* Tip: You can also paste Curl commands into the URL bar

); } } ImportExport.propTypes = { handleImportFile: PropTypes.func.isRequired, handleImportUri: PropTypes.func.isRequired, handleExportAll: PropTypes.func.isRequired, handleExportWorkspace: PropTypes.func.isRequired }; export default ImportExport;