import { KeyboardIcon } from "~/assets/icons/KeyboardIcon"; import { useState } from "react"; import { useShortcutKeys } from "~/hooks/useShortcutKeys"; import { Button } from "./primitives/Buttons"; import { Header3 } from "./primitives/Headers"; import { Paragraph } from "./primitives/Paragraph"; import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetTrigger } from "./primitives/SheetV3"; import { ShortcutKey } from "./primitives/ShortcutKey"; export function Shortcuts() { return ( ); } export function ShortcutsAutoOpen() { const [isOpen, setIsOpen] = useState(false); useShortcutKeys({ shortcut: { modifiers: ["shift"], key: "?" }, action: () => { setIsOpen(true); }, }); return ( ); } function ShortcutContent() { return (
Keyboard shortcuts
General to
Runs page
Run page to
Logs page to
Metrics page
Schedules page
Alerts page
); } function Shortcut({ children, name }: { children: React.ReactNode; name: string }) { return (
{name} {children}
); }