'use client'; import { type HTMLAttributes, useState } from 'react'; import Image from 'next/image'; import Link from 'next/link'; import { msg } from '@lingui/macro'; import { useLingui } from '@lingui/react'; import { FaXTwitter } from 'react-icons/fa6'; import { LiaDiscord } from 'react-icons/lia'; import { LuGithub, LuLanguages } from 'react-icons/lu'; import LogoImage from '@documenso/assets/logo.png'; import { SUPPORTED_LANGUAGES } from '@documenso/lib/constants/i18n'; // import { StatusWidgetContainer } from './status-widget-container'; import { LanguageSwitcherDialog } from '@documenso/ui/components/common/language-switcher-dialog'; import { cn } from '@documenso/ui/lib/utils'; import { Button } from '@documenso/ui/primitives/button'; import { ThemeSwitcher } from '@documenso/ui/primitives/theme-switcher'; export type FooterProps = HTMLAttributes; const SOCIAL_LINKS = [ { href: 'https://twitter.com/documenso', icon: }, { href: 'https://github.com/documenso/documenso', icon: }, { href: 'https://documen.so/discord', icon: }, ]; const FOOTER_LINKS = [ { href: '/pricing', text: msg`Pricing` }, { href: '/singleplayer', text: 'Singleplayer' }, { href: 'https://docs.documenso.com', text: msg`Documentation`, target: '_blank' }, { href: 'mailto:support@documenso.com', text: msg`Support`, target: '_blank' }, { href: '/blog', text: msg`Blog` }, { href: '/changelog', text: msg`Changelog` }, { href: '/open', text: msg`Open Startup` }, { href: '/design-system', text: msg`Design` }, { href: 'https://shop.documenso.com', text: msg`Shop`, target: '_blank' }, { href: 'https://status.documenso.com', text: msg`Status`, target: '_blank' }, { href: '/oss-friends', text: msg`OSS Friends` }, { href: '/careers', text: msg`Careers` }, { href: '/privacy', text: msg`Privacy` }, ]; export const Footer = ({ className, ...props }: FooterProps) => { const { _, i18n } = useLingui(); const [languageSwitcherOpen, setLanguageSwitcherOpen] = useState(false); return (
Documenso Logo
{SOCIAL_LINKS.map((link, index) => ( {link.icon} ))}
{/*
*/}
{FOOTER_LINKS.map((link, index) => ( {typeof link.text === 'string' ? link.text : _(link.text)} ))}

© {new Date().getFullYear()} Documenso, Inc. All rights reserved.

); };