Files
nocodb/packages/nc-gui/composables/useCommandPalette/index.ts
mertmit 8ab47b1109 fix: various stuff
Signed-off-by: mertmit <mertmit99@gmail.com>
2023-09-06 09:51:17 +03:00

23 lines
511 B
TypeScript

export const useCommandPalette = createSharedComposable(() => {
const commandPalette = ref()
const refreshCommandPalette = createEventHook<void>()
const cmdPlaceholder = ref('Quick actions')
const cmdData = computed(() => {})
const activeScope = computed(() => ({} as any))
const loadTemporaryScope = (..._args: any) => {}
return {
commandPalette,
cmdData,
activeScope,
cmdPlaceholder,
refreshCommandPalette: refreshCommandPalette.trigger,
loadTemporaryScope,
}
})