mirror of
https://github.com/amir20/dozzle.git
synced 2026-06-23 04:10:12 +00:00
8dac197f60
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
17 lines
405 B
TypeScript
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;
|
|
},
|
|
};
|
|
}
|