routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// Utilities
|
||||
import { inject } from 'vue';
|
||||
|
||||
// Types
|
||||
|
||||
export const VCommandPaletteSymbol = Symbol.for('vuetify:command-palette');
|
||||
export function useCommandPalette() {
|
||||
const commandPalette = inject(VCommandPaletteSymbol);
|
||||
if (!commandPalette) {
|
||||
throw new Error('[Vuetify] useCommandPalette must be used within VCommandPalette');
|
||||
}
|
||||
return commandPalette;
|
||||
}
|
||||
//# sourceMappingURL=shared.js.map
|
||||
Reference in New Issue
Block a user