quivr/frontend/app/chat/components/ChatsList/NewChatButton.tsx
Mamadou DICKO dc64470d5d
Ux improvment (#382)
* feat: make chat list hidden on mobile by default

* feat: autoclose chat list on click

* feat: move footer to chat lists bottom when user is logged in

* feat: fix header when user is logged in

* chore: refacto ChatMessages

* feat: reverse chat list display on fetch

* feat: fix new chat button
2023-06-27 11:28:09 +02:00

12 lines
405 B
TypeScript

import Link from "next/link";
import { BsPlusSquare } from "react-icons/bs";
export const NewChatButton = (): JSX.Element => (
<Link
href="/chat"
className="px-4 py-2 mx-4 my-1 border border-primary bg-white dark:bg-black hover:text-white hover:bg-primary shadow-lg rounded-lg flex items-center justify-center top-1 z-20"
>
<BsPlusSquare className="h-6 w-6 mr-2" /> New Chat
</Link>
);