Files
dozzle/assets/composable/fuzzySearch.ts
T
Amir Raminfar 8dac197f60 feat(cloud-proto): add SearchLogs unary RPC (#4672)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-05 16:11:32 -07:00

17 lines
405 B
TypeScript

// Shared open state for the global Cmd+K fuzzy-search modal.
// Lives outside the layout so any surface (home page hero, mobile menu,
// sidebar trigger) can open the same modal without prop-drilling.
const open = ref(false);
export function useFuzzySearch() {
return {
open,
openSearch: () => {
open.value = true;
},
closeSearch: () => {
open.value = false;
},
};
}