From 8e0965f5274635f609972ef85802675af64df0f4 Mon Sep 17 00:00:00 2001 From: polwex Date: Thu, 29 May 2025 15:16:41 +0700 Subject: this is mostly me --- src/components/srs/LessonSelector.tsx | 76 +++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 src/components/srs/LessonSelector.tsx (limited to 'src/components/srs') diff --git a/src/components/srs/LessonSelector.tsx b/src/components/srs/LessonSelector.tsx new file mode 100644 index 0000000..8c4e8dd --- /dev/null +++ b/src/components/srs/LessonSelector.tsx @@ -0,0 +1,76 @@ +"use client"; +import { useState } from "react"; +import { Input } from "@/components/ui/input"; +import { Label } from "@/components/ui/label"; +import { Button } from "@/components/ui/button"; +import { Card } from "@/components/ui/card"; +// Client component for selecting a lesson +function LessonSelector({ userId }: { userId: number }) { + const [lessonId, setLessonId] = useState(""); + + return ( +
+ +

Start Study Session

+ +
+
+
+ + setLessonId(e.target.value)} + placeholder="Enter lesson ID" + type="number" + required + /> +
+ + +
+
+ +
+

Available Lessons

+

+ Here are some example lesson IDs you can use: +

+
+ + + +
+ +
+ +
+
+
+
+ ); +} + +export default LessonSelector; -- cgit v1.2.3