diff --git a/src/app/contacts/[contactId]/page.tsx b/src/app/(sidebar)/contacts/[contactId]/page.tsx similarity index 100% rename from src/app/contacts/[contactId]/page.tsx rename to src/app/(sidebar)/contacts/[contactId]/page.tsx diff --git a/src/app/(sidebar)/layout.tsx b/src/app/(sidebar)/layout.tsx new file mode 100644 index 0000000..21cd3bb --- /dev/null +++ b/src/app/(sidebar)/layout.tsx @@ -0,0 +1,49 @@ +import React, { Suspense } from "react"; +import Link from "next/link"; +import Form from "next/form"; +import ContactList from "./sidebar-contacts"; +import { getContacts } from "@/app/data"; +import type { Metadata } from "next"; + +export default function SidebarRootLayout({ + children, +}: Readonly<{ + children: React.ReactNode; +}>) { + const contacts = getContacts(); + + return ( + <> +
}> +
+ This is a demo for React Router.
+
+ Check out{" "}
+
+ the docs at reactrouter.com
+
+ .
+
+ This is a demo application showing off some of the + powerful features of React Router, including + dynamic routing, nested routes, loaders, actions, + and more. +
+ ++ Explore the demo to see how React Router handles: +
++ Check out the official documentation at{" "} + + reactrouter.com + {" "} + to learn more about building great web + applications with React Router. +
+