mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-12 05:28:51 +01:00
28 lines
830 B
TypeScript
28 lines
830 B
TypeScript
import React from 'react';
|
|
import { useGetStartupConfig } from 'librechat-data-provider';
|
|
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://github.com/danny-avila/LibreChat"
|
|
target="_blank"
|
|
rel="noreferrer"
|
|
className="underline"
|
|
>
|
|
{config?.appTitle || 'LibreChat'} v0.6.1
|
|
</a>
|
|
{' - '}. {localize('com_ui_pay_per_call')}
|
|
</>
|
|
)}
|
|
</div>
|
|
);
|
|
}
|