mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 21:56:55 +00:00
23 lines
511 B
TypeScript
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,
|
|
}
|
|
})
|