import React from "react"; import SelectInput from "./selection/select-input.tsx"; import { IndicatorComponent, ItemComponent } from "./select.tsx"; import { Octo } from "./octo.tsx"; import { Span } from "paintcannon-react"; import { TerminalFlex } from "./terminal-flex.tsx"; type Item = { label: string; value: V; }; type MenuPanelProps = { items: Array>; readonly onSelect: (item: Item) => any; title: string; children?: React.ReactNode; }; export const MenuHeader = ({ title }: { title: string }) => { return ( {title} ); }; export function MenuPanel({ items, onSelect, title, children }: MenuPanelProps) { return ( {children && ( {children} )} ); }