import { todayYyyymmdd } from "@/shared/utils/datetime/index.js";

/**
 * Modern.js conventional data loader. Co-located with page.tsx.
 * Computes today on the server, exposes it via useLoaderData() so SSR
 * and client hydration agree on the same yyyyMMdd.
 */
export const loader = (): { today: string } => ({
  today: todayYyyymmdd(),
});
