import { Button, Tooltip } from '@janhq/joi' import { useAtomValue } from 'jotai' import { FaGithub, FaDiscord } from 'react-icons/fa' import { twMerge } from 'tailwind-merge' import DownloadingState from './DownloadingState' import ImportingModelState from './ImportingModelState' import InstallingExtension from './InstallingExtension' import SystemMonitor from './SystemMonitor' import UpdateApp from './UpdateApp' import UpdatedFailedModal from './UpdateFailedModal' import { appDownloadProgressAtom } from '@/helpers/atoms/App.atom' import { reduceTransparentAtom } from '@/helpers/atoms/Setting.atom' const menuLinks = [ { name: 'Discord', icon: , link: 'https://discord.gg/FTk2MvZwJH', }, { name: 'Github', icon: , link: 'https://github.com/janhq/jan', }, ] const BottomPanel = () => { const progress = useAtomValue(appDownloadProgressAtom) const reduceTransparent = useAtomValue(reduceTransparentAtom) return (
{progress && progress > 0 ? ( ) : null}
Jan v{VERSION ?? ''}
{menuLinks .filter((link) => !!link) .map((link, i) => (
{link.icon} } content={link.name} />
))}
) } export default BottomPanel