Spaces:
Runtime error
Runtime error
File size: 703 Bytes
13095e0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
import { IconPlus } from '@tabler/icons-react';
import { FC } from 'react';
import { Conversation } from '@/types/chat';
interface Props {
selectedConversation: Conversation;
onNewConversation: () => void;
}
export const Navbar: FC<Props> = ({
selectedConversation,
onNewConversation,
}) => {
return (
<nav className="flex w-full justify-between bg-[#202123] py-3 px-4">
<div className="mr-4"></div>
<div className="max-w-[240px] overflow-hidden text-ellipsis whitespace-nowrap">
{selectedConversation.name}
</div>
<IconPlus
className="cursor-pointer hover:text-neutral-400 mr-8"
onClick={onNewConversation}
/>
</nav>
);
};
|