forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

command-palette.ts12 lines, 472 bytesHistoryRawDownload
1import { 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.
6const [commandPaletteOpen, setCommandPaletteOpen] = createSignal(false);
7
8export { commandPaletteOpen, setCommandPaletteOpen };
9
10export function openCommandPalette() {
11 setCommandPaletteOpen(true);
12}