2023-02-06 13:27:28 -05:00
|
|
|
import React from 'react';
|
|
|
|
|
import NewChat from './NewChat';
|
2023-02-07 10:26:19 -05:00
|
|
|
import Conversations from '../Conversations';
|
2023-02-06 13:27:28 -05:00
|
|
|
import NavLinks from './NavLinks';
|
|
|
|
|
|
2023-02-11 11:37:20 -05:00
|
|
|
export default function Nav({ conversations, conversationId }) {
|
2023-02-06 13:27:28 -05:00
|
|
|
return (
|
|
|
|
|
<div className="dark hidden bg-gray-900 md:fixed md:inset-y-0 md:flex md:w-[260px] md:flex-col">
|
|
|
|
|
<div className="flex h-full min-h-0 flex-col ">
|
|
|
|
|
<div className="scrollbar-trigger flex h-full w-full flex-1 items-start border-white/20">
|
|
|
|
|
<nav className="flex h-full flex-1 flex-col space-y-1 p-2">
|
|
|
|
|
<NewChat />
|
2023-02-07 09:41:54 -05:00
|
|
|
<Conversations conversations={conversations} />
|
2023-02-06 13:27:28 -05:00
|
|
|
<NavLinks />
|
|
|
|
|
</nav>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|