import { For, Show } from "solid-js"; import type { RecentRepository } from "../lib/bindings"; import { absoluteTime, isoTime, relativeTime } from "../lib/format"; import type { Recents } from "../lib/recents"; /** * Repositories opened before. * * Each row is two controls rather than one with a nested button, which HTML * does not allow: opening is the row itself, forgetting sits beside it. */ export default function RecentRepositories(props: { recents: Recents; onOpen: (path: string) => void; }) { return ( 0}>

Recent

{/* Named after its heading so it is addressable as "the recent list" rather than just "a list". Naming a
); } function Row(props: { entry: RecentRepository; recents: Recents; onOpen: (path: string) => void }) { return (
  • ); }