()
| 11 | } |
| 12 | |
| 13 | export function useImportDialog() { |
| 14 | function openImportDialog( |
| 15 | source: ImportDialogSource, |
| 16 | space = getImportDialogSpace(source), |
| 17 | ) { |
| 18 | importDialogSpace.value = space |
| 19 | isImportDialogOpen.value = true |
| 20 | } |
| 21 | |
| 22 | return { |
| 23 | importDialogSpace, |
| 24 | isImportDialogOpen, |
| 25 | openImportDialog, |
| 26 | } |
| 27 | } |