import { For, Show } from "solid-js"; import type { RefEntry } from "../lib/bindings"; import type { Refs } from "../lib/refs"; /** * The repository's references. * * Entries are text rather than buttons: nothing happens when you click a * branch yet, and a control that looks interactive but is not is worse than * plain text. They become controls when checking out exists. */ export default function RepositoryNav(props: { refs: Refs; /** The checked-out branch, so it can be marked among the others. */ head?: string; /** Whether a repository is open at all. */ isOpen: boolean; }) { return ( ); } function Section(props: { title: string; entries: RefEntry[]; head?: string; isOpen: boolean }) { const headingId = () => `refs-${props.title.toLowerCase()}`; return (
{props.isOpen ? "None" : "—"}
} >