📝 feat: Markdown support for Custom Footer links (#2960)

* feat: Add markdown support for custom footer links

* fix: Update Footer component with revised ReactMarkdown props

* fix: Adjusted footer links and pipe styles for consistent appearance

* refactor: remove unused footer.tsx file
This commit is contained in:
Jakub Mieszczak 2024-06-13 15:51:28 +02:00 committed by GitHub
parent 08b8ae120e
commit e9bbf39618
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 35 additions and 39 deletions

View file

@ -1,23 +0,0 @@
import { Constants } from 'librechat-data-provider';
import { useGetStartupConfig } from 'librechat-data-provider/react-query';
import { useLocalize } from '~/hooks';
export default function Footer() {
const { data: config } = useGetStartupConfig();
const localize = useLocalize();
return (
<div className="hidden px-3 pb-1 pt-2 text-center text-xs text-black/50 dark:text-white/50 md:block md:px-4 md:pb-4 md:pt-3">
{typeof config?.customFooter === 'string' ? (
config.customFooter
) : (
<>
<a href="https://librechat.ai" target="_blank" rel="noreferrer" className="underline">
{config?.appTitle || 'LibreChat'} {Constants.VERSION}
</a>
{' - '}. {localize('com_ui_pay_per_call')}
</>
)}
</div>
);
}