Remove the per-route 'export const instant = false' opt-outs now that the root layout carries the single Cache Components opt-out. Child pages inherit the opt-out, so admin/mod/radio leaf pages that only access cached or DB data stay instant while runtime-dependent pages remain dynamic. Update the staff-smoke contract test to assert the root-layout contract.
14 lines
395 B
TypeScript
14 lines
395 B
TypeScript
import { ModActionsClient } from "@/app/admin/moderation/actions/mod-actions-client";
|
|
import { requireModPermission } from "@/lib/admin/guard";
|
|
import { PERMS } from "@/lib/permissions";
|
|
|
|
export default async function ModQuickActionsPage() {
|
|
await requireModPermission([PERMS.MOD_ACTIONS, PERMS.MODERATION_EDIT]);
|
|
|
|
return (
|
|
<div className="space-y-6">
|
|
<ModActionsClient />
|
|
</div>
|
|
);
|
|
}
|