(options?: ImportOptions)
| 56 | }; |
| 57 | |
| 58 | export const importVideoFromPicker = async (options?: ImportOptions) => { |
| 59 | const result = await dialog.open({ |
| 60 | filters: [ |
| 61 | { |
| 62 | name: "Video Files", |
| 63 | extensions: videoExtensions, |
| 64 | }, |
| 65 | ], |
| 66 | multiple: false, |
| 67 | }); |
| 68 | const path = selectedPath(result); |
| 69 | if (!path) return null; |
| 70 | return await importVideoPath(path, options); |
| 71 | }; |
| 72 | |
| 73 | export const importImageFromPicker = async (options?: ImportOptions) => { |
| 74 | const result = await dialog.open({ |
no test coverage detected