import { AppShell } from "@/components/app-shell"
import { requireAtLeast } from "@/lib/services/session"
import { RecurrenceExplorer } from "@/components/recurrence-explorer"

/**
 * The recurrence engine, on a screen, so its rules can be argued with by
 * somebody who will never open `lib/recurrence.ts`.
 *
 * Read only. Nothing here writes, and nothing here decides a date.
 */
export default async function Page() {
  const user = await requireAtLeast("admin")

  return (
    <AppShell title={"recurrence.title"} user={user}>
      <RecurrenceExplorer />
    </AppShell>
  )
}
