// In-app back control for drill-through pages (#/account/:id, #/entry/:id) —
// Task 9 item 5. Browser back already works for free (these are ordinary
// hashchange navigations, see lib/useHashView.ts), but a page reached by
// clicking a row deserves an obvious way back that doesn't depend on the
// user knowing the browser has one.

export function BackLink({ label = "Back" }: { label?: string }) {
  return (
    <button type="button" className="back-link" onClick={() => window.history.back()}>
      ← {label}
    </button>
  );
}
