mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-11 14:30:26 +01:00
wip
This commit is contained in:
5
web/app/(pages)/topics/ls/page.tsx
Normal file
5
web/app/(pages)/topics/ls/page.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { TopicLearningStateRoute } from "@/components/routes/topics/learning-state/TopicLearningStateRoute"
|
||||
|
||||
export default function TopicLearningStatePage() {
|
||||
return <TopicLearningStateRoute />
|
||||
}
|
||||
5
web/app/(pages)/topics/page.tsx
Normal file
5
web/app/(pages)/topics/page.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { TopicRoute } from "@/components/routes/topics/TopicRoute"
|
||||
|
||||
export default function TopicPage() {
|
||||
return <TopicRoute />
|
||||
}
|
||||
5
web/components/routes/topics/TopicRoute.tsx
Normal file
5
web/components/routes/topics/TopicRoute.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
"use client"
|
||||
|
||||
export const TopicRoute: React.FC = () => {
|
||||
return <div>TopicRoute</div>
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
"use client"
|
||||
|
||||
import { LEARNING_STATES } from "@/lib/constants"
|
||||
import { parseAsStringLiteral, useQueryState } from "nuqs"
|
||||
|
||||
export const TopicLearningStateRoute: React.FC = () => {
|
||||
const [learningState, setLearningState] = useQueryState(
|
||||
"state",
|
||||
parseAsStringLiteral(LEARNING_STATES.map(ls => ls.value))
|
||||
)
|
||||
return <div>TopicLearningStateRoute</div>
|
||||
}
|
||||
Reference in New Issue
Block a user