import { basename } from "node:path"; import { Box, Text } from "ink"; import type { Model } from "../../types"; import { VERSION } from "../../version"; import { symbols, t } from "../theme"; interface HeaderProps { model: Model | null; modelCount: number; } export function Header({ model, modelCount }: HeaderProps) { return ( 🏄 paikea {VERSION} {symbols.divider} {symbols.gear} {model?.name ?? "none"} {modelCount > 1 && ( ({modelCount} models) )} {basename(process.cwd())} {/* horizon line — the sea/sky boundary under the masthead */} ); }