import Link from "next/link";

export function BackToCalendarLink() {
  // The selected week is stored in a server-readable cookie (tcWeek), so the
  // home page already renders the right week without us needing to pass it
  // through the URL.
  return (
    <Link
      href="/"
      className="park-name-link"
      style={{
        display: "flex",
        alignItems: "center",
        gap: 6,
        fontSize: "0.8rem",
        color: "var(--color-text-muted)",
        textDecoration: "none",
        transition: "color 120ms ease",
      }}
    >
      ← Calendar
    </Link>
  );
}
