import { FaCopy, FaDownload, FaFile, FaFileDownload, FaFileImage, } from 'react-icons/fa'; import type { ToolbarPopoverMenuItem } from '../elements/ToolbarPopoverItem.js'; const IMPORT_MENU: ToolbarPopoverMenuItem[] = [ { icon: , text: 'Import from file system (Press Ctrl+o)', data: { id: 'importFile', }, }, { icon: , text: 'Add JCAMP-DX from URL', data: { id: 'importJDX', }, }, { icon: , text: 'Generate spectrum from publication string', data: { id: 'importPublicationString', }, }, { icon: , text: 'Import meta information', data: { id: 'importMetaInformation', }, }, ] as const; type ExportMenuItemsId = | 'nmrium_archive' | 'advance_save' | 'svg' | 'png' | 'copy' | 'nmre' | 'exportAsJcamp'; export type ExportMenuItems = Array< ToolbarPopoverMenuItem<{ id: ExportMenuItemsId }> >; const EXPORT_MENU: ExportMenuItems = [ { icon: , text: 'Save data', tooltip: { title: 'Save data', shortcuts: ['CTRL', 's'], }, data: { id: 'nmrium_archive', }, }, { icon: , text: 'Save as', tooltip: { title: 'Save as', shortcuts: ['CTRL', '⇧', 's'], }, data: { id: 'advance_save', }, }, { icon: , text: 'Export as SVG', data: { id: 'svg', }, }, { icon: , text: 'Export as PNG', data: { id: 'png', }, }, { icon: , text: 'Copy image to clipboard (Press Ctrl+c)', data: { id: 'copy', }, }, { icon: , text: 'Export as NMReData', data: { id: 'nmre', }, }, ]; export { EXPORT_MENU, IMPORT_MENU };