quivr/frontend/app/chat/components/ChatsList/NewChatButton.tsx
Zineb El Bachiri 1d7bc8a5bc
Devx/add linter rules (#331)
* remove duplicate import

* 🚧 add new linter configuration

* 🧑‍💻  add and run prettier

* 🐛 add babel parser for linter

* 🧑‍💻 add lint-fix command

* 🚨 use lint-fix

* 🚨 remove 'FC' as a type. Use const and JSX.Element

* 🚨 enforce arrow function rule from linter

* 🔥 delete unused file

* 🚨 adding /* eslint-disable */ in failing files

* 💩 add ts-expect-error to Victory components
2023-06-15 11:52:46 +02:00

12 lines
412 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-2 border border-primary bg-white dark:bg-black hover:text-white hover:bg-primary shadow-lg rounded-lg flex items-center justify-center sticky top-2 z-20"
>
<BsPlusSquare className="h-6 w-6 mr-2" /> New Chat
</Link>
);