diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 339c415..5e7a68a 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,9 +1,10 @@ import type { Metadata } from "next"; -import React from "react"; +import React, { Suspense } from "react"; import "./globals.css"; import Form from "next/form"; -import Link from "next/link"; +import ContactList from "@/app/sidebar-contacts"; +import { getContacts } from "@/app/data"; export const metadata: Metadata = { title: "Next.js Address Book", @@ -15,6 +16,8 @@ export default function RootLayout({ }: Readonly<{ children: React.ReactNode; }>) { + const contacts = getContacts(); + return (
@@ -40,14 +43,9 @@ export default function RootLayout({