mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-21 21:31:32 +03:00
dc64470d5d
* 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
49 lines
1.3 KiB
TypeScript
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;
|