tambahannya
This commit is contained in:
6
src/app/darmasaba/(pages)/module/[sub]/page.tsx
Normal file
6
src/app/darmasaba/(pages)/module/[sub]/page.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
export default async function Page({ params }: { params: Promise<{ sub: string }> }) {
|
||||
const { sub } = await params
|
||||
return <div>
|
||||
{sub}
|
||||
</div>
|
||||
}
|
||||
15
src/app/darmasaba/(pages)/module/page.tsx
Normal file
15
src/app/darmasaba/(pages)/module/page.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
'use client'
|
||||
|
||||
import { Stack } from "@mantine/core"
|
||||
import { useSnapshot } from "valtio"
|
||||
import stateNav from "@/state/state-nav"
|
||||
|
||||
export default function Page() {
|
||||
const { module, isSearch } = useSnapshot(stateNav)
|
||||
|
||||
return (
|
||||
<Stack h={"100vh"} >
|
||||
{JSON.stringify({ module, isSearch })}
|
||||
</Stack>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user