quivr/frontend/lib/components/Footer/index.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

49 lines
1.3 KiB
TypeScript

"use client";
import { DISCORD_URL, GITHUB_URL, TWITTER_URL } from "@/lib/config/CONSTANTS";
import { useSupabase } from "@/lib/context/SupabaseProvider";
const Footer = (): JSX.Element => {
const { session } = useSupabase();
if (session?.user !== undefined) {
return <div />;
}
return (
<footer className="bg-white dark:bg-black border-t dark:border-white/10 mt-auto py-4">
<div className="max-w-screen-xl mx-auto flex justify-center items-center gap-4">
<a
href={GITHUB_URL}
target="_blank"
rel="noopener noreferrer"
aria-label="Quivr GitHub"
>
<img
className="h-8 w-auto dark:invert"
src="/github.svg"
alt="GitHub"
/>
</a>
<a
href={TWITTER_URL}
target="_blank"
rel="noopener noreferrer"
aria-label="Quivr Twitter"
>
<img className="h-8 w-auto" src="/twitter.svg" alt="Twitter" />
</a>
<a
href={DISCORD_URL}
target="_blank"
rel="noopener noreferrer"
aria-label="Quivr Discord"
>
<img className="h-8 w-auto" src="/discord.svg" alt="Discord" />
</a>
</div>
</footer>
);
};
export default Footer;