import React from "react"; import { Octo } from "../octo.tsx"; import { Item, KbShortcutSelect, ShortcutArray } from "./kb-shortcut-select.tsx"; import { Span } from "paintcannon-react"; import { TerminalFlex } from "../terminal-flex.tsx"; type KbPanelProps = { shortcutItems: ShortcutArray; readonly onSelect: (item: Item) => any; title: string; children?: React.ReactNode; }; export const MenuHeader = ({ title }: { title: string }) => { return ( {title} ); }; export function KbShortcutPanel({ shortcutItems, onSelect, title, children }: KbPanelProps) { return ( {children && ( {children} )} ); }