app/page.tsx corresponds to the root route (/), while app/dashboard/gaming corresponds to /crm.
Following are the fundamental building blocks to creating a route.
import React, { Fragment } from "react";
import Link from 'next/link';
import { useRouter } from "next/navigation";
<
ul>
<
li>
<
Link href="/dashboard/gaming">Gaming
<
/Link>
<
/li>
<
li>
<
Link href="/dashboard/sales">Sales
<
/Link>
<
/li>
<
li>
<
Link href="/blog/hello-world">Blog Post
<
/Link>
<
/li>
<
/ul>
Following are the fundamental building blocks to creating a new link.
├── shared
├──layout-components
├──sidebar
nav.tsx
export const MENUITEMS: any = [
{
menutitle: "MAIN",
},
{
icon: DashboardIcon,
badgetxt: badge,
title: "Dashboards",
type: "sub",
active: false,
children: [
{
path: "/dashboard/gaming",
type: "link",
active: false,
selected: false,
title: "CRM",
},
{
path: "/dashboard/sales",
type: "link",
active: false,
selected: false,
title: "Sales",
},
{
path: "/dashboard/analytics",
type: "link",
active: false,
selected: false,
title: "Analytics",
},
]
}
]