Skip to content

Commit

Permalink
feat : ChatLayout.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-Dongwook committed Oct 28, 2024
1 parent ff29501 commit 6771e71
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/app/chat/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react';

export const metadata = {
title: 'Chat',
};

interface ChatLayoutProps {
children: React.ReactNode;
}

export default function ChatLayout({ children }: ChatLayoutProps) {
return (
<div className="h-screen flex flex-col">
<header className="bg-blue-600 text-white p-4">
<h1 className="text-xl font-bold">Chat Sessions</h1>
</header>
<main className="flex-grow overflow-y-auto bg-gray-100">
<div className="max-w-4xl mx-auto p-4">{children}</div>
</main>
</div>
);
}

0 comments on commit 6771e71

Please sign in to comment.