2023-02-11 12:54:02 -05:00
|
|
|
import React from 'react';
|
2023-07-27 14:49:47 -04:00
|
|
|
import { useGetStartupConfig } from 'librechat-data-provider';
|
2023-08-14 17:51:03 +02:00
|
|
|
import { useLocalize } from '~/hooks';
|
2023-02-11 12:54:02 -05:00
|
|
|
|
|
|
|
|
export default function Footer() {
|
2023-06-15 09:36:34 -07:00
|
|
|
const { data: config } = useGetStartupConfig();
|
2023-08-14 17:51:03 +02:00
|
|
|
const localize = useLocalize();
|
2023-07-28 13:48:02 -04:00
|
|
|
|
2023-02-11 12:54:02 -05:00
|
|
|
return (
|
2023-05-18 11:09:31 -07:00
|
|
|
<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">
|
2023-10-23 21:08:18 -04:00
|
|
|
{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')}
|
|
|
|
|
</>
|
|
|
|
|
)}
|
2023-02-11 12:54:02 -05:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|