Files
lume/src/components/navigation/chats.tsx
T

29 lines
951 B
TypeScript

import ChatList from '@components/chats/chatList';
import { Disclosure } from '@headlessui/react';
import { NavArrowUp } from 'iconoir-react';
export default function Chats() {
return (
<Disclosure>
{({ open }) => (
<div className="flex flex-col px-2">
<Disclosure.Button className="flex cursor-pointer items-center gap-1 px-1 py-1">
<div
className={`inline-flex h-5 w-5 transform items-center justify-center transition-transform duration-150 ease-in-out ${
open ? 'rotate-180' : ''
}`}
>
<NavArrowUp width={16} height={16} className="text-zinc-700" />
</div>
<h3 className="text-[11px] font-bold uppercase tracking-widest text-zinc-600">Chats</h3>
</Disclosure.Button>
<Disclosure.Panel>
<ChatList />
</Disclosure.Panel>
</div>
)}
</Disclosure>
);
}