import Link from "@/components/link"; import type { HousekeepingSurface } from "../contracts"; import type { HousekeepingRecentItem } from "../recent/recent-work"; import { toHousekeepingHref } from "../routing/href"; export interface RecentWorkLabels { readonly title: string; readonly empty: string; } export function RecentWork({ items, labels, surface, titles = {}, }: { readonly items: readonly HousekeepingRecentItem[]; readonly labels: RecentWorkLabels; readonly surface: HousekeepingSurface; readonly titles?: Readonly>; }) { return (

{labels.title}

{items.length === 0 ?

{labels.empty}

: null}
); }