hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits
| 1 | import { createSignal } from "solid-js"; |
| 2 | |
| 3 | // The palette is mounted once by the shell, but its entry points live in |
| 4 | // pages (the dashboard hero field) and the mobile tab bar, so its open state |
| 5 | // is a module-level signal rather than a prop threaded through every layer. |
| 6 | const [commandPaletteOpen, setCommandPaletteOpen] = createSignal(false); |
| 7 | |
| 8 | export { commandPaletteOpen, setCommandPaletteOpen }; |
| 9 | |
| 10 | export function openCommandPalette() { |
| 11 | setCommandPaletteOpen(true); |
| 12 | } |