diff --git a/app/play/[level]/page.tsx b/app/play/[level]/page.tsx
index 4e6860c..3d6b2a2 100644
--- a/app/play/[level]/page.tsx
+++ b/app/play/[level]/page.tsx
@@ -41,7 +41,31 @@ export default function PlayLevelPage({
const [showOriginalMap, setShowOriginalMap] = useState(true);
if (!map) {
- return
Loading...
;
+ return (
+
+
+
+ {flags?.showTestPage && (
+ setMode(value as "play" | "test")}
+ >
+
+ Play
+ Test AI
+
+
+ )}
+
+
Night #{level}
+
+
Loading...
+
+ );
}
function handleRetryClicked() {
diff --git a/app/play/page.tsx b/app/play/page.tsx
index 2b2e21e..dcc04fa 100644
--- a/app/play/page.tsx
+++ b/app/play/page.tsx
@@ -12,12 +12,23 @@ import {
CardHeader,
CardTitle,
} from "@/components/ui/card";
+import { Skeleton } from "@/components/ui/skeleton";
export default function PlayPage() {
const maps = useQuery(api.maps.getMaps);
if (!maps) {
- return Loading...
;
+ return (
+
+
Choose a Night
+
+
+ {Array.from({ length: 6 }).map((_, index) => (
+
+ ))}
+
+
+ );
}
return (
diff --git a/components/ui/skeleton.tsx b/components/ui/skeleton.tsx
new file mode 100644
index 0000000..d7e45f7
--- /dev/null
+++ b/components/ui/skeleton.tsx
@@ -0,0 +1,15 @@
+import { cn } from "@/lib/utils"
+
+function Skeleton({
+ className,
+ ...props
+}: React.HTMLAttributes) {
+ return (
+
+ )
+}
+
+export { Skeleton }