import React from "react"; import { Box, Text } from "ink"; import SelectInput from "./ink/select-input.tsx"; import { IndicatorComponent, ItemComponent } from "./select.tsx"; import { LaissCodex } from "./laisscodex.tsx"; type Item = { label: string, value: V, } type MenuPanelProps = { items: Array>, readonly onSelect: (item: Item) => any, title: string, children?: React.ReactNode, }; export const MenuHeader = React.memo(({ title }: { title: string }) => { return {title} }); export function MenuPanel({ items, onSelect, title, children }: MenuPanelProps) { return { children && { children } } }