feat: add CUSTOM_FOOTER env variable (#1098)

This commit is contained in:
Danny Avila 2023-10-23 21:08:18 -04:00 committed by GitHub
parent 4ce585f77d
commit 05c4c7e551
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 49 additions and 47 deletions

View file

@ -8,15 +8,21 @@ export default function Footer() {
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">
<a
href="https://github.com/danny-avila/LibreChat"
target="_blank"
rel="noreferrer"
className="underline"
>
{config?.appTitle || 'LibreChat'} v0.6.0
</a>
{' - '}. {localize('com_ui_pay_per_call')}
{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.0
</a>
{' - '}. {localize('com_ui_pay_per_call')}
</>
)}
</div>
);
}