( sourcePath: string, options?: ImportOptions, )
| 46 | }; |
| 47 | |
| 48 | export const importImagePath = async ( |
| 49 | sourcePath: string, |
| 50 | options?: ImportOptions, |
| 51 | ) => { |
| 52 | const imagePath = await invoke<string>("start_image_import", { sourcePath }); |
| 53 | await commands.showWindow({ ScreenshotEditor: { path: imagePath } }); |
| 54 | await maybeHideCurrentWindow(options); |
| 55 | return imagePath; |
| 56 | }; |
| 57 | |
| 58 | export const importVideoFromPicker = async (options?: ImportOptions) => { |
| 59 | const result = await dialog.open({ |
no test coverage detected